Here is the first part of an IF statement that has a problem. I was wondering if this was a syntax error or if there is something fundamentally wrong with it?
j1, s1, d1 e.t.c. are drop down boxes.
If Me!j1 Is Not Null And Me!s1 Is Null And Me!d1 Is Null And Me!c1 Is Null And Me!a1 Is Null Then
On Error GoTo Err_RunQuery_Click
Dim stDocName As String
stDocName = "JobTitle"
DoCmd.OpenQuery stDocName, acNormal, acEdit
j1, s1, d1 e.t.c. are drop down boxes.
If Me!j1 Is Not Null And Me!s1 Is Null And Me!d1 Is Null And Me!c1 Is Null And Me!a1 Is Null Then
On Error GoTo Err_RunQuery_Click
Dim stDocName As String
stDocName = "JobTitle"
DoCmd.OpenQuery stDocName, acNormal, acEdit