G
Guest
Hello,
I use the following code to retrieve a course #:
Session = DLookup("[SessionID]", "schSESSION", "[SessionName]='" & cmbSessions.Text & "'")
The problem is that sometimes the Session Name includes quotes - which then gives me an error since it thinks the statement is incomplete. The message I get is "Runtime Error 3075: Syntax Error (missing operator) in query expression '[SessionName]='Early Childhood Educators' Conference". This happens anytime a course has an apostrophe in the name. Any suggestions on how to get this to work?
Thanks in advance,
Eric Chajmovic
I use the following code to retrieve a course #:
Session = DLookup("[SessionID]", "schSESSION", "[SessionName]='" & cmbSessions.Text & "'")
The problem is that sometimes the Session Name includes quotes - which then gives me an error since it thinks the statement is incomplete. The message I get is "Runtime Error 3075: Syntax Error (missing operator) in query expression '[SessionName]='Early Childhood Educators' Conference". This happens anytime a course has an apostrophe in the name. Any suggestions on how to get this to work?
Thanks in advance,
Eric Chajmovic