Hello, and I'm stumped by Access for about the millionth time.
Have a simple automation. To copy a line to a form, I have I believe a perfectly good module/macro as follows:
DoCmd.RunCommand acCmdSelectRecord
DoCmd.RunCommand acCmdCopy
DoCmd.RunCommand acCmdPasteAppend
It worked before in another db.
When I attach the code to a checkbox button, and the user checks a row on the form to be copied, I get this mystery message:
Microsoft Office Access can't find the object '.'
If " is a new macro or macro group, make sure you have saved it, and that you have typed its name correctly.
I've tried my code both in VBA code, and in a macro.
I've tried attaching the code to On Click, BeforeUpdate, and AfterUpdate, for the checkbox.
Can see the VBA or macro attached under the Properties section of the checkbox, clear as day.
Nothing works. Have no idea what I'm doing wrong.
Mercifully, would any one be able to tell me what is wrong here???
Many thanks.
Have a simple automation. To copy a line to a form, I have I believe a perfectly good module/macro as follows:
DoCmd.RunCommand acCmdSelectRecord
DoCmd.RunCommand acCmdCopy
DoCmd.RunCommand acCmdPasteAppend
It worked before in another db.
When I attach the code to a checkbox button, and the user checks a row on the form to be copied, I get this mystery message:
Microsoft Office Access can't find the object '.'
If " is a new macro or macro group, make sure you have saved it, and that you have typed its name correctly.
I've tried my code both in VBA code, and in a macro.
I've tried attaching the code to On Click, BeforeUpdate, and AfterUpdate, for the checkbox.
Can see the VBA or macro attached under the Properties section of the checkbox, clear as day.
Nothing works. Have no idea what I'm doing wrong.
Mercifully, would any one be able to tell me what is wrong here???
Many thanks.