C
Chris K
I'm having a few concerns about my Access application - It doesn't seem to
be erroring as it should
I have just written small routine with complete error trapping:
Private Sub Invite_Click()
On Error GoTo CantPrintInvite
With CurrentDb.QueryDefs("StdQuery").Parameters
.SQL = "SELECT [JHPclients.].* From [JHPclients.] WHERE [booked] = "
& Bookings <<<<<Errored here
End With
Application.FollowHyperlink "Letter Invite to induction.doc", , True
Exit_Invite:
Exit Sub
CantPrintInvite:
MsgBox "Cant Print Invite: " & Err.Description
Resume Exit_Invite
End Sub
I caused a deliberate error but the trap was ignored completely and Access
caused regular error and into debug mode on the line indicated
Is there something obvious here that I'm not seeing???
be erroring as it should
I have just written small routine with complete error trapping:
Private Sub Invite_Click()
On Error GoTo CantPrintInvite
With CurrentDb.QueryDefs("StdQuery").Parameters
.SQL = "SELECT [JHPclients.].* From [JHPclients.] WHERE [booked] = "
& Bookings <<<<<Errored here
End With
Application.FollowHyperlink "Letter Invite to induction.doc", , True
Exit_Invite:
Exit Sub
CantPrintInvite:
MsgBox "Cant Print Invite: " & Err.Description
Resume Exit_Invite
End Sub
I caused a deliberate error but the trap was ignored completely and Access
caused regular error and into debug mode on the line indicated
Is there something obvious here that I'm not seeing???