H
Haggr1 via AccessMonster.com
Below is the code used to run 2 queries w/o error messages. But after
running "debug" a few months ago this code quit working: returning an error
message that I can't acknowledge thru. I can run each query independently
and acknowledge each potenial error (2-3) per query. "dbFailOnError" should
handle those??? Any Suggestions? Thanks
Private Sub Command49_Click()
On Error GoTo Err_Command49_Click
With CurrentDb
DoCmd.Hourglass True
.Execute "qrystyleappendstyle", dbFailOnError
.Execute "qrystylegary", dbFailOnError
End With
Exit_Command49_Click:
DoCmd.Hourglass False
Exit Sub
Err_Command49_Click:
MsgBox Err.Description
Resume Exit_Command49_Click
End Sub
running "debug" a few months ago this code quit working: returning an error
message that I can't acknowledge thru. I can run each query independently
and acknowledge each potenial error (2-3) per query. "dbFailOnError" should
handle those??? Any Suggestions? Thanks
Private Sub Command49_Click()
On Error GoTo Err_Command49_Click
With CurrentDb
DoCmd.Hourglass True
.Execute "qrystyleappendstyle", dbFailOnError
.Execute "qrystylegary", dbFailOnError
End With
Exit_Command49_Click:
DoCmd.Hourglass False
Exit Sub
Err_Command49_Click:
MsgBox Err.Description
Resume Exit_Command49_Click
End Sub