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

Close Form from Lost Focus()....

Status
Not open for further replies.

stlrain95

Programmer
Sep 21, 2001
224
US
After a text field has lost focus I am automatically updating the table. But I also need the form to close.

I have tried

DoCmd.Close
DoCmd.RunCommand acCloseForm

What am I missing?

Thank you
 
You probably can't close a form while it is runign code to close itself. I think you wil get an error
try this
DoCmd.Close yourFormNameHere
If you get an error then you have to run a macro first to open the form and close it.

Anyway...

DougP, MCP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top