DebbieDavis
Programmer
hello,
I have a recordset that I need to update with line numbers by job ID. For instance:
db.execute("update job set line_no=??? where jobid=1")
How do I go about looping through this recordset and adding line_no + 1 to the next and so on?
I've tried iCount=iCount+1 in a do loop and outside of a do loop and under a do loop, etc. but I keep getting the same number in the line_no field for each record (like 3) instead of incrementing (like 1,2,3). I hope this makes sense.
Lost and frustrated. Thank you in advance for your thoughts.
dd
I have a recordset that I need to update with line numbers by job ID. For instance:
db.execute("update job set line_no=??? where jobid=1")
How do I go about looping through this recordset and adding line_no + 1 to the next and so on?
I've tried iCount=iCount+1 in a do loop and outside of a do loop and under a do loop, etc. but I keep getting the same number in the line_no field for each record (like 3) instead of incrementing (like 1,2,3). I hope this makes sense.
Lost and frustrated. Thank you in advance for your thoughts.
dd