D
Dan @BCBS
Help I'm stuck -
I need to add a line of code - that pops up a message if a certain value is
entered.
Example: If Me.MBR_GROUPNO = 12345-678 Then
MsgBox "Please report this member ASAP"
DoCmd.CancelEvent
End If
When I add this to my code, nothing happens????
Here is my code...
Thanks
If IsNull(Me.MBR_GROUPNO) Or IsNull(Me.MBR_GROUPNAME) Or
IsNull(Me.MBR_COUNTYCODE) Then
If IsNull(Me.MBR_GROUPNO) Then
MsgBox "Please enter Group Number"
DoCmd.CancelEvent
End If
If IsNull(Me.MBR_GROUPNAME) Then
MsgBox "Please enter Group Name"
DoCmd.CancelEvent
End If
If IsNull(Me.MBR_COUNTYCODE) Then
MsgBox "Please enter County"
DoCmd.CancelEvent
End If
Exit Sub
End If
I need to add a line of code - that pops up a message if a certain value is
entered.
Example: If Me.MBR_GROUPNO = 12345-678 Then
MsgBox "Please report this member ASAP"
DoCmd.CancelEvent
End If
When I add this to my code, nothing happens????
Here is my code...
Thanks
If IsNull(Me.MBR_GROUPNO) Or IsNull(Me.MBR_GROUPNAME) Or
IsNull(Me.MBR_COUNTYCODE) Then
If IsNull(Me.MBR_GROUPNO) Then
MsgBox "Please enter Group Number"
DoCmd.CancelEvent
End If
If IsNull(Me.MBR_GROUPNAME) Then
MsgBox "Please enter Group Name"
DoCmd.CancelEvent
End If
If IsNull(Me.MBR_COUNTYCODE) Then
MsgBox "Please enter County"
DoCmd.CancelEvent
End If
Exit Sub
End If