I have put an action query in a close event of a form.
DoCmd.RunSql(DELETE * FROM tblLog WHERE [tblLog].[Delete]=True
DoCmd.Quit
The query works fine when nothing is opened, but when it's placed in the close event, records are still locked as the form is not closed, unloaded or whatever...
Where do I put the action query?
DoCmd.RunSql(DELETE * FROM tblLog WHERE [tblLog].[Delete]=True
DoCmd.Quit
The query works fine when nothing is opened, but when it's placed in the close event, records are still locked as the form is not closed, unloaded or whatever...
Where do I put the action query?