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

DoCmd.Close shutting down all Access

Status
Not open for further replies.

davejackson

Technical User
May 8, 2001
34
GB
Hi,
I'm running the following code to delete a specific record from a table from a 'delete form'. (No idea if this is relevant). About half the time the DoCmd.Close line is executed the whole of access closes. (The other half it seems to behave normally and just shuts the form). This is obviously pretty frustrating.

DoCmd.RunSQL "DELETE from tblName Where This = "That";"
DoCmd.Close acForm, "frmName", acSaveYes

Please can anyone shed any light on why this is happening?
Thanks, Dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top