Need help with the following. I am trying to make a loop and make it add record1, record2… to 8. It counts fine but it is having issues (like me) updating a DB. I need help with correct syntax.
Do While not loopcount < 9
Varx1 = “rst.Record” & loopcount & “text1”
Varx2 = “Me!Record” & loopcount & “text1”
rst.AddNew
Varx1 = Varx2
rst.Update
'instead of passing the value of the form Me!record1text it
' pass's the vale "Me!record1text", which does not help me?
Loopcount = loopcount + 1
Loop
It adds 8 records great but with no data?
Thanks
Do While not loopcount < 9
Varx1 = “rst.Record” & loopcount & “text1”
Varx2 = “Me!Record” & loopcount & “text1”
rst.AddNew
Varx1 = Varx2
rst.Update
'instead of passing the value of the form Me!record1text it
' pass's the vale "Me!record1text", which does not help me?
Loopcount = loopcount + 1
Loop
It adds 8 records great but with no data?
Thanks