I'm trying to trap the error 13 that occurs when the cancel button on my inputbox is clicked. I have tried several recommended methods, but none seems to work.
This is the most recommended code:
I've also tried:
If intAmtPd <.01 Then
Exit Sub
End If
and
If strptr (intAmtPd) = 0 Then
Exit Sub
End If
Nothing works.What am I doing wrong?
Thanks,
Sup
This is the most recommended code:
Code:
Private Sub chkPaid_AfterUpdate()
Dim intAmtPd As double
intAmtPd = Round(InputBox("Please enter the amount paid for this procedure " & Me.Description, "Amount Paid"), 2)
If intAmtPd ="" Then
Exit Sub
End If
blah
blah
blah
End Sub
I've also tried:
If intAmtPd <.01 Then
Exit Sub
End If
and
If strptr (intAmtPd) = 0 Then
Exit Sub
End If
Nothing works.What am I doing wrong?
Thanks,
Sup
Last edited: