I've tried to write code to use the DoMenuItem several times and haven't gotten it to work. What I'm trying to do is on my continuous form I want to be able to click in a certain field and for it to automatically copy the value in that field.
I've set up this code in the on click property of the textbox:
Private Sub txtZCCode_Click()
DoCmd.DoMenuItem acFormBar, acEditMenu, acCopy, , acMenuVer70
End Sub
Everytime I click in that field I'm getting an error message.
Suggestions?
I've set up this code in the on click property of the textbox:
Private Sub txtZCCode_Click()
DoCmd.DoMenuItem acFormBar, acEditMenu, acCopy, , acMenuVer70
End Sub
Everytime I click in that field I'm getting an error message.
Suggestions?