I have been using the command button wizard to make several buttons on my forms.
The navigational buttons work fine but others do not.
When I create a 'duplicate record' command button using the wizard and then try to use it I receive an error message that says.
."The command or action 'paste append' isn't available now"
then when I try to close out of the form it says that I have copied a large amout of data to the clipboard and do I want to save it.
I have created this command in other databases with no problems.
Here is the code:
Private Sub Duplicate_Click()
On Error GoTo Err_Duplicate_Click
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70 'Paste Append
Exit_Duplicate_Click:
Exit Sub
Err_Duplicate_Click:
MsgBox Err.Description
Resume Exit_Duplicate_Click
End Sub
The navigational buttons work fine but others do not.
When I create a 'duplicate record' command button using the wizard and then try to use it I receive an error message that says.
."The command or action 'paste append' isn't available now"
then when I try to close out of the form it says that I have copied a large amout of data to the clipboard and do I want to save it.
I have created this command in other databases with no problems.
Here is the code:
Private Sub Duplicate_Click()
On Error GoTo Err_Duplicate_Click
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70 'Paste Append
Exit_Duplicate_Click:
Exit Sub
Err_Duplicate_Click:
MsgBox Err.Description
Resume Exit_Duplicate_Click
End Sub