davejackson
Technical User
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
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