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!

Close a form from the LostFocus event?

Status
Not open for further replies.

jgoodman00

Programmer
Jan 23, 2001
1,510
0
0
With regards to this message thread:
thread702-144609
Is it possible to close a form from the LostFocus (or similar) event, because it appears to always error (see other post for message)

James Goodman
j.goodman00@btinternet.com
 
You can't close the form this way, cheat and open a hidden form which closes the first form and then closes it self.
 
Hi! if you have a command button you can close the form! just create a command button and use the wizard for form operations! you can write the code yourself too! use the OnClick Event and type the following code:

docmd.close

i hope it helps!

Skep :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top