Can anyone spot the syntax error? I feel like I have all the operators for the OpenRecordset method that are necessary.
The error says "Syntax error (missing operator) in query expression '(Date: = 10/31/2014)'.
the class variable is equal to the string "007-14 A"
Below is the line of code where the error is coming from:
Set rec = db.OpenRecordset("SELECT '" & class & "' FROM tblCalendar WHERE (Date: = 10/31/2014)")
Do I have the wrong quotes around the wrong things or could it have to do with the semicolon in the title of the field Date?
class is a field I want to select. So the actual field title is 007-14 A.
:is probably not needed after theDate