My table is a list of folks who have registered for an event. It is normal for a husband and wife (and maybe child) to register on the same form. I would like to enter all of the data for the first person, then press a button to duplicate the data for the next registrant included in that envelope. The only data that would change would be the registration number and maybe the events attended.
I used the control button wizard to create the button which yielded the following code:
[I add code here to generate the next registration number]
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70
[I set the registration number.value to the number I generated above]
The registration number is a mandatory field, and the primary index (I want to control which numbers starts the registration numbers).
I use control buttons to perform all record navigation.
When I press the duperec button, I get all blank text boxes eexcept for the registration number textbox which is properly incremented.
What am I doing wrong? I have even tried to set the registration field to non-indexed and also to indexed but allow duplicates, all with the same results.
Thanks
I used the control button wizard to create the button which yielded the following code:
[I add code here to generate the next registration number]
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70
[I set the registration number.value to the number I generated above]
The registration number is a mandatory field, and the primary index (I want to control which numbers starts the registration numbers).
I use control buttons to perform all record navigation.
When I press the duperec button, I get all blank text boxes eexcept for the registration number textbox which is properly incremented.
What am I doing wrong? I have even tried to set the registration field to non-indexed and also to indexed but allow duplicates, all with the same results.
Thanks