Hello I am trying to learn how to loop through records on a continuous form.
I was hoping that the code below would cycle through each record where email_id was <=3 and enter the word 'set' into the 'test_data' field.
Could someone show me where I am going wrong here.
Thank you
Mark
I was hoping that the code below would cycle through each record where email_id was <=3 and enter the word 'set' into the 'test_data' field.
Could someone show me where I am going wrong here.
Thank you
Mark
Code:
Private Sub Command4_Click()
DoCmd.GoToRecord , , acFirst
Do While EMail_ID <= 3
Me.test_data = "set"
DoCmd.GoToRecord , , acNext
Exit Do
Loop
End Sub