Run Time Error'3075': Syntax Error(Missing Operator) in query expression
I am running a database using MS Access 2000 along with Visual Basic.
Inside the database I am running a specific tracking summary form that takes information from a populated main table.
Inside the tracking summary form I have three combo boxes; Status, Fiscal Year and Province, with their respective choices. When a user chooses one of the choices within the combo boxes it gives a
Run-Time Error'3075':
Sytnax error (missing operator) in query expression
'tblmain.Status comment tblMain.ProjectTitle'.
More Information About the Error:
When I debug the error it highlights the line of code: Me.RecordSource = sql
I have declared the variables and there is no other errors with the other code only the highlighted line.
There are also other lines of code stated under the highlighted line of code, they are not highlighted but may or may not be part of the problem, I am unsure of this.
Me.RecordSource = sql -(highlighted code)
Me.cboStatus = statusTemp -(not highlighted)
Me.cboFiscalYear = fiscalYearTemp -(not highlighted)
Me.cboProvince = provinceTemp -(not highlighted)
I am not sure what to do with this error. What do you think the problem is and how do you think I can fix this?