hey
not getting an error message..it's just that when i click on the button (image) it should pop up a message saying the playername box is empty(isnull). if there is a playername entered then the form should close as normal.
this is the on click code i am using:
Private Sub OLEUnbound199_Click()
If IsNull(Me.PlayerName) = True Or Len(Me.[PlayerName]) < 1 Then
MsgBox "You must enter the Player's name!", vbOK, "Tennis Center Business Manager 2007"
Exit Sub
End If
DoCmd.OpenForm "Switchboard", acNormal
DoCmd.Close acForm, "Client Information", acSaveYes
End Sub
not getting an error message..it's just that when i click on the button (image) it should pop up a message saying the playername box is empty(isnull). if there is a playername entered then the form should close as normal.
this is the on click code i am using:
Private Sub OLEUnbound199_Click()
If IsNull(Me.PlayerName) = True Or Len(Me.[PlayerName]) < 1 Then
MsgBox "You must enter the Player's name!", vbOK, "Tennis Center Business Manager 2007"
Exit Sub
End If
DoCmd.OpenForm "Switchboard", acNormal
DoCmd.Close acForm, "Client Information", acSaveYes
End Sub