I keep getting a syntax error on the code below.. Why?
Newbie in search of knowledge
Code:
Private Sub cmdSubmit_Click()
if (me!cboWorkDate.value = "" or me!txtLogIn.value = "" or
me!txtLogOut.value = "" or me!cboSite.value = "" or me!cboActivity.value = "") then
MsgBox NameOfField & " is a required field"
Else
InputLogInOut
End If
End Sub
Newbie in search of knowledge