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

Close or unload a form 1

Status
Not open for further replies.

leonepaolo

Programmer
May 28, 2001
82
CA
Hi!

I can't figure out how to close and/or unload the current form. Essentially, once the user has pressed a command button and the code is executed, there is no further use for the form and I would like that form to close automatically.

Any comments or suggestions are appreciated.

Thanks in advance,
Paolo.
 
How about, at the end of your code:
DoCmd.Close acForm, "frmFormName
 
Hi Remou,

That doesn't want to work for me.

I've also tried:
DoCmd.Close acForm, "frmFormName", acSaveYes
DoCmd.Close acForm, Me, acSaveYes

Could I be missing a reference? Any other thoughts?

Thanks for your help,
Paolo
 
How about
DoCmd.Close acForm, Me.Name, acSaveYes

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top