I keep getting this error
"Syntax error (missing operator) in query expression 'WHERE [Section] = Administration AND [Sub_Section] = None;"
DoCmd.OpenForm "Attendance", acNormal, "", "WHERE [Section] = " & strSection & " AND [Sub_Section] = " & strSubsection & ";", acEdit, acNormal
The code is to open up an attendance form based on 2 objects selected from drop down lists. I don't see anything wrong with the code maybe you guys can help. Thanks.
"Syntax error (missing operator) in query expression 'WHERE [Section] = Administration AND [Sub_Section] = None;"
DoCmd.OpenForm "Attendance", acNormal, "", "WHERE [Section] = " & strSection & " AND [Sub_Section] = " & strSubsection & ";", acEdit, acNormal
The code is to open up an attendance form based on 2 objects selected from drop down lists. I don't see anything wrong with the code maybe you guys can help. Thanks.