Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DoCmd.Close won't close form

Status
Not open for further replies.

sanders720

Programmer
Aug 2, 2001
421
US
I have a command button. The code behind it is basically:

DoCmd.Close

I get the following error:

This action can't be carried out while processing a form or report event.

I've never seen this before. I just want to close the form that my program opened in anotyher segment of code. I don;t need to save anything, just need to close the form.

Thanks in advance for the help.

 
Have you tried something like this ?
DoCmd.Close acForm, "NameOfForm"

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top