I want to be able to add a record and move the cursor to the next, so every thing came after should alway add at the end. but with the code following, after I add my first record, rest of my records always add on top of my last record, so it is
2
3
4
5
6
1
anybody know how can I ask the cursor to move past the last record? thank you. my code:
Dim source
source = "SELECT * FROM Cart WHERE control= '" & strCONTROL & "' "
On Error Resume Next
rs.Open source, Connstring, adOpenDynamic, adLockOptimistic
Do until rs.EOF
rs.MoveNext
Loop
Response.Write "rs is EOF"
Set rs = conn.Execute("INSERT INTO Cart VALUES ('2/01/01','','" & strCONTROL & "' )"
2
3
4
5
6
1
anybody know how can I ask the cursor to move past the last record? thank you. my code:
Dim source
source = "SELECT * FROM Cart WHERE control= '" & strCONTROL & "' "
On Error Resume Next
rs.Open source, Connstring, adOpenDynamic, adLockOptimistic
Do until rs.EOF
rs.MoveNext
Loop
Response.Write "rs is EOF"
Set rs = conn.Execute("INSERT INTO Cart VALUES ('2/01/01','','" & strCONTROL & "' )"