Dick7Access
Dick S
- Local time
- Today, 17:46
- Joined
- Jun 9, 2009
- Messages
- 4,201
I have a form with a sub form, with a 1 to many. I want to make a duplicate record where I will go into the new record, make some changes, and then save it as a new record. Goggling how to make a duplicate record I cam across the following code:
It works good, but doesn't pick up the data in the sub form. What do I need to add to this code to have it pick up the data in the sub form/table?
Code:
Private Sub comand1_Click()
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70
End Sub