T
troubledstudent
I am constantly getting an error when I run the following sql statement in
docmd runsql:
dim sqlcheck as string
Dim db As DAO.Database
Dim rs As DAO.Recordset
db = currentdb
sqlcheck = "SELECT Processing.Retort_id, Processing.labor_code,
Processing.process_name, Processing.employee_name " & _
"FROM Processing WHERE (((Processing.Retort_id)=" &
Me.retortid.Value & ") AND ((Processing.labor_code)=" & Me!select_labor & ")
AND ((Processing.process_name)=" & Me!select_process & ") " & _
"AND ((Processing.employee_name)=" & Me!select_employee & "))"
Set rs = db.OpenRecordset(sqlcheck)
---------------------------
I am constantly getting an '3075' runtime error
"syntax error missing operator in query expression"
any advice?
thanks
docmd runsql:
dim sqlcheck as string
Dim db As DAO.Database
Dim rs As DAO.Recordset
db = currentdb
sqlcheck = "SELECT Processing.Retort_id, Processing.labor_code,
Processing.process_name, Processing.employee_name " & _
"FROM Processing WHERE (((Processing.Retort_id)=" &
Me.retortid.Value & ") AND ((Processing.labor_code)=" & Me!select_labor & ")
AND ((Processing.process_name)=" & Me!select_process & ") " & _
"AND ((Processing.employee_name)=" & Me!select_employee & "))"
Set rs = db.OpenRecordset(sqlcheck)
---------------------------
I am constantly getting an '3075' runtime error
"syntax error missing operator in query expression"
any advice?
thanks