craigachan
Registered User.
- Local time
- Today, 12:27
- Joined
- Nov 9, 2007
- Messages
- 285
I've been getting this runtime error that closes my application. I don't get this error in the full version of Access2007. I've tried error handling but can never get it to catch. I need help! Here is the code that produces the error:
I've tried it like this:
'Check to see if there is more than 1 implant placed
If Len(Me.ImpHeader) > 2 Then '
Response = MsgBox("Include All Implants Placed In Header?", vbYesNoCancel)
If Response = vbNo Then
DoCmd.OpenForm "ChartImplantTeethInHeader", , , , , acDialog
Exit Sub
End If
End If
And Like this:
'Check to see if there is more than 1 implant placed
If Len(Me.ImpHeader) > 2 Then '
Response = MsgBox("Include All Implants Placed In Header?", vbYesNoCancel)
Select Case Response
Case vbNo
DoCmd.OpenForm "ChartImplantTeethInHeader", , , , , acDialog
Exit Sub
End Select
End If
Both do the same and Error Handling won't catch it. I read about using End statements that may cause this, But I guess I don't know if this is my case or not and don't know how to write this any other way.
Any help would be appreciated.
I've tried it like this:
'Check to see if there is more than 1 implant placed
If Len(Me.ImpHeader) > 2 Then '
Response = MsgBox("Include All Implants Placed In Header?", vbYesNoCancel)
If Response = vbNo Then
DoCmd.OpenForm "ChartImplantTeethInHeader", , , , , acDialog
Exit Sub
End If
End If
And Like this:
'Check to see if there is more than 1 implant placed
If Len(Me.ImpHeader) > 2 Then '
Response = MsgBox("Include All Implants Placed In Header?", vbYesNoCancel)
Select Case Response
Case vbNo
DoCmd.OpenForm "ChartImplantTeethInHeader", , , , , acDialog
Exit Sub
End Select
End If
Both do the same and Error Handling won't catch it. I read about using End statements that may cause this, But I guess I don't know if this is my case or not and don't know how to write this any other way.
Any help would be appreciated.