M
Mark A. Sam
Hello,
In the following BeforeUpdate event of a textbox, I am getting a Property
Not Found error without a number.
Private Sub TripStartLoc_BeforeUpdate(Cancel As Integer)
On Error Resume Next
If InStr(Me.ActiveControl, ",") = 0 Then
MsgBox "The format for this field is City,St using state code like
Dunkirk,NY or Miami,Fl"
Cancel = True
[TripStartLoc].Undo
End If
End Sub
I can run this from the AfterUpdate event, but just curious about the error.
I am using Access2007.
Thank you and God Bless,
Mark A. Sam
In the following BeforeUpdate event of a textbox, I am getting a Property
Not Found error without a number.
Private Sub TripStartLoc_BeforeUpdate(Cancel As Integer)
On Error Resume Next
If InStr(Me.ActiveControl, ",") = 0 Then
MsgBox "The format for this field is City,St using state code like
Dunkirk,NY or Miami,Fl"
Cancel = True
[TripStartLoc].Undo
End If
End Sub
I can run this from the AfterUpdate event, but just curious about the error.
I am using Access2007.
Thank you and God Bless,
Mark A. Sam