Simple Loop problem

MICHELE

Registered User.
Local time
Today, 10:17
Joined
Jul 6, 2000
Messages
117
I am trying to update several records on a form at one time. My form shows in continuous view so that you can see all of the records on the screen at once. I am trying to update all of the PCODE fields at once with a control button. Can't I use some kind of loop? I've tried several ways but can never update more than one field at a time. Here's what I need to have repeat:


Me.PCODE.SetFocus
Me.PCODE = "P"
DoCmd.GoToRecord , acnextrec

I need for it to update all of the records that appear on the form
 
I believe a better approach would be to update your underlying records by running an update query, then refresh your form.
 

Users who are viewing this thread

Back
Top Bottom