That offers us no help at all.
Did you change "FormName" to whatever your actual form name is?
Please copy and paste the full exact click event code into a reply
message.
I see you have periods instead of commas. That would certainly be an error.
Did you type that directly into the button's On Click event property (that
would be an error), or did you create an event procedure and put this line
of code inside that event procedure (that would be the right way to do it)?
If Bill put the statement directly into the On Click property of the command
button, then clicking the button would give the error message "<database
name> can't find the macro 'DoCmd.'" My guess is that this is what has
happened.
That did the trick! I had to put it in an event procedure.
Thanks
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.