J
Jordan C. Schroeder
Hello Experts,
I am trying to compile my database application, but I seem to be running
into an error on one of my forms in the BeforeUpdate event. Here is the code
for my validation:
Private Sub Customer_BeforeUpdate(Cancel As Integer)
If (Customer.Value & vbNullString = vbNullString) Then
MsgBox "Customer is required!", vbOKOnly
Cancel = True
Customer.Undo
Else
End If
End Sub
When I compile it highlights the Customer.Undo line and says Method or data
member not found. Kind of odd since I am using the same statement on another
form which does not produce the error. Any suggestions would be greatly
appreciated.
Thanks!
I am trying to compile my database application, but I seem to be running
into an error on one of my forms in the BeforeUpdate event. Here is the code
for my validation:
Private Sub Customer_BeforeUpdate(Cancel As Integer)
If (Customer.Value & vbNullString = vbNullString) Then
MsgBox "Customer is required!", vbOKOnly
Cancel = True
Customer.Undo
Else
End If
End Sub
When I compile it highlights the Customer.Undo line and says Method or data
member not found. Kind of odd since I am using the same statement on another
form which does not produce the error. Any suggestions would be greatly
appreciated.
Thanks!