I'm trying to filter a report based on the value selected from a combo box on an unbound form. This code results in Error #3075: Syntax error (missing operator) in query expression '(Tech=JoeSmith)'.
Dim stDocName As String, stSelectTech As String
stDocName = "rptFollowup"
stSelectTech = "Tech=" & Forms![frmTechnician]![cboTechnician]
DoCmd.OpenReport stDocName, acPreview, , stSelectTech
Exit_cmdTechnician_Click:
Exit Sub
I've just spent an hour searching this site and attempting different variations of the filter and where and just can't figure it out. I sure would appreciate some help.
Dim stDocName As String, stSelectTech As String
stDocName = "rptFollowup"
stSelectTech = "Tech=" & Forms![frmTechnician]![cboTechnician]
DoCmd.OpenReport stDocName, acPreview, , stSelectTech
Exit_cmdTechnician_Click:
Exit Sub
I've just spent an hour searching this site and attempting different variations of the filter and where and just can't figure it out. I sure would appreciate some help.