I have the following code attached to a command button on my Form.
When the button is pressed, the queries should update (which they do) and the
database closes down. The database however doesn't shut down, but when I click
around the database anywhere, it finally vanishes. Is there sonething I need to
include in the code?
Thank you for any advice you can offer.
Code:
Private Sub Command29_Exit(Cancel As Integer)
DoCmd.SetWarnings False
DoCmd.OpenQuery "1"
DoCmd.OpenQuery "2"
DoCmd.OpenQuery "3"
DoCmd.OpenQuery "4"
DoCmd.OpenQuery "5"
DoCmd.OpenQuery "6"
DoCmd.OpenQuery "7"
DoCmd.OpenQuery "8"
DoCmd.OpenQuery "9"
DoCmd.OpenQuery "10"
DoCmd.OpenQuery "11"
DoCmd.OpenQuery "12"
DoCmd.OpenQuery "13"
DoCmd.SetWarnings True
DoCmd.Quit
End Sub