I am using Access 2003 to connect to a SQL 2000 database. I am having trouble with the following query to populate a combo box on the form using the manager name stored in a text box also on the same form:
select work_order_number
from mwo.dbo.mwo
where ((manager_approved is null) and (manager = [Forms]![frm_main_menu].[person]))
order by work_order_number
I get the following error: ODBC call failed. Line 3: Incorrect syntax near '!'. (#170)
It works fine until I add the second condition: and manager = [Forms]![frm_main_menu].[person]
Any ideas or suggestions ? Thank you so much !
select work_order_number
from mwo.dbo.mwo
where ((manager_approved is null) and (manager = [Forms]![frm_main_menu].[person]))
order by work_order_number
I get the following error: ODBC call failed. Line 3: Incorrect syntax near '!'. (#170)
It works fine until I add the second condition: and manager = [Forms]![frm_main_menu].[person]
Any ideas or suggestions ? Thank you so much !