jscript/ASP problem?

Discussion in 'Digital Media' started by butchtroll, May 30, 2008.

  1. butchtroll Not Active

    butchtroll
    Joined:
    May 29, 2008
    Messages:
    2
    Likes Received:
    0
    It would seem that a statement such as:

    TestVal = RecordSet.Fields("Data")

    will bind the variable to the column rather than just assigning the current value. Is this correct and if so how do I assign a value from a database?
    C'mon guys! I am trying to itterate through a recordset and compare the previous value to the current value, but my "Test" value updates to the current value when I move to a new record. I want to set my "Test" value change records then compare the test value to the new value.
    .....(drumroll) And the answer is...
    variable=RS.Fields("Data") binds the variable to the column.

    variable=RS.Fields("Data").value assigns the current value to the variable.

    actually a powerful tool, and now I have another problem! aaah the life of a coder!
  2. loveumaryii Not Active

    loveumaryii
    Joined:
    May 26, 2008
    Messages:
    12
    Likes Received:
    0
Loading...

Share This Page