I have a form, and i used the "wizard" to set up a "duplicate record" button.
It duplicates all of the fields in the form.
Is there a way that I can set it so that it only duplicates 3 or 4 of the fields in the form?
Here is the wizard code:
Private Sub Command49_Click()
On Error GoTo Err_Command49_Click
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70 'Paste Append
Exit_Command49_Click:
Exit Sub
Err_Command49_Click:
MsgBox Err.Description
Resume Exit_Command49_Click
End Sub
Thanks
It duplicates all of the fields in the form.
Is there a way that I can set it so that it only duplicates 3 or 4 of the fields in the form?
Here is the wizard code:
Private Sub Command49_Click()
On Error GoTo Err_Command49_Click
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70 'Paste Append
Exit_Command49_Click:
Exit Sub
Err_Command49_Click:
MsgBox Err.Description
Resume Exit_Command49_Click
End Sub
Thanks