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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Close a form via DoCmd.Runcommand instead of macro

Status
Not open for further replies.

Goot

Programmer
Aug 4, 2005
86
0
0
US
I want to close a form that is open.
This works when I use a macro, but I dont want to use a macro.

DoCmd.RunMacro "macCloseIssuesForm"

How can I use the DoCmd.RunCommand
what is the syntax?

Thanks
 
DoCmd.close

Christopher Abney
There is no limit to the good you can do if you dont care who gets the credit
 
yep... I got it.

DoCmd.Close acForm, "Issues", acSaveNo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top