I'm having a problem with the following code.
I get an error "Microsoft Office Access can't find the field '|' referred to in your expression" when my error trapping is on. If I remove all my error trapping it tells me this is run time error '2465'.
What am I doing wrong? I have a feeling it's going to be a "duh" once I get the answer!
Thanks in advance,
Michelle
Code:
Me.Project.RowSource = "SELECT Projects.ProjectID, Projects.ProjectName FROM WorkPlan INNER JOIN Projects ON WorkPlan.ProjectID = Projects.ProjectID " & _
"WHERE (((WorkPlan.ConsultantID) = " & [Me]![ConsultantID] & ") AND ((WorkPlan.ProgramName) = " & [Me]![SSID] & "))"
I get an error "Microsoft Office Access can't find the field '|' referred to in your expression" when my error trapping is on. If I remove all my error trapping it tells me this is run time error '2465'.
What am I doing wrong? I have a feeling it's going to be a "duh" once I get the answer!
Thanks in advance,
Michelle