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

closing forms, how?

Status
Not open for further replies.

uttam1

Programmer
Aug 8, 2003
9
IN
Hi all,

I have a command button "Done". When it's clicked, I want the form to close ( not hidden ), and open another form. How do I do this?

Thanks in advance
-Uttam
 
You can use a macro: close and then specify that it is a form you want to close and wich form you want to close of course... or you can use the commando unload me to close a form. To open a form: load [formname]
 
Hi uttam1,

I always find it a bit odd that code inside the unloaded form still runs but what you need is ..

Code:
Unload Me
NewForm.Show

Enjoy,
Tony
 
Hi airtabaki, TonyJollans,

Thanks for the replys! I tried using Unload Me, but I get an error saying you cant unload the object (?). I tried the macro and it worked perfect! Thanks a ton!

-Uttam
 
Hi uttam1,

My apologies! I was in Excel mode. Glad you got it sorted with airtabaki's help.

Enjoy,
Tony
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top