Trying to create code to loop to run thru a table but I get an error "Argument not optional" and it highlights my EOF function. The following is the code I am using:
DoCmd.GoToRecord , , acFirst
Dim n As Integer
n = 1
Do While Not EOF
DoCmd.GoToRecord , , acNext
n = n + 1
Loop
Thanks
DoCmd.GoToRecord , , acFirst
Dim n As Integer
n = 1
Do While Not EOF
DoCmd.GoToRecord , , acNext
n = n + 1
Loop
Thanks