C
Curtis Stevens
I have this code as an onclick event for a button, but it is now crashing all
of a sudden for me when using it half the time.
On Error GoTo handler
Dim Msg, Style, Title, Response, MyString
Msg = "Run Update Query?"
Style = vbYesNo + vbDefaultButton1 + vbExclamation
Title = "Run Update Query?"
Response = msgbox(Msg, Style, Title)
If Response = vbYes Then '
DoCmd.SetWarnings False
DoCmd.OpenQuery "UpdateAppEntry"
DoCmd.SetWarnings True
Else
End If
handler:
If Err.Number = 2498 Or 94 Then
End If
End Sub
==========================
UpdateAppEntry - is an update query
Any ideas or suggestions?
Curtis
of a sudden for me when using it half the time.
On Error GoTo handler
Dim Msg, Style, Title, Response, MyString
Msg = "Run Update Query?"
Style = vbYesNo + vbDefaultButton1 + vbExclamation
Title = "Run Update Query?"
Response = msgbox(Msg, Style, Title)
If Response = vbYes Then '
DoCmd.SetWarnings False
DoCmd.OpenQuery "UpdateAppEntry"
DoCmd.SetWarnings True
Else
End If
handler:
If Err.Number = 2498 Or 94 Then
End If
End Sub
==========================
UpdateAppEntry - is an update query
Any ideas or suggestions?
Curtis