Dears. I have a simple problem, which I couldnt solve. I am a basic Access VBA user.
On click event of the Yes/No field checkedData
If my datefield1 is empty, I want message "ok", else
I want to check, either Datefield2 or Stringfiled must be filled. If both are empty, I must get message "Select" otherwise Message "Ok"
I try the following code, but it is not working. I am making some mistake not sure.
Kindly help.
Private Sub CheckedData_Click()
If Me.Datefiled1 <> "" Then
If ([Datefield2] & "") = "" And (Stringfield & "") = "" Then
MsgBox "Select"
Else
MsgBox "ok"
End If
End If
End Sub