R
radink
I have a form and Would like to copy and paste from one field to another. Ihave the vba code tied to a button and it works. I would like to now loop it to do all of the records in the database. I tried a few ideas, but it runs forever creating tons of new records. Im not sure what code I should usein the loop to stop it.
Here's my code so far:
Do
Me!Text199.SetFocus
DoCmd.RunCommand acCmdCopy
Me!gt1.SetFocus
DoCmd.RunCommand acCmdPaste
DoCmd.GoToRecord , , acNext
Loop
Here's my code so far:
Do
Me!Text199.SetFocus
DoCmd.RunCommand acCmdCopy
Me!gt1.SetFocus
DoCmd.RunCommand acCmdPaste
DoCmd.GoToRecord , , acNext
Loop