Hi All,
Have a report based on a query that works great. Wanted to add another text box to the report and base the field on another query. Here is the code.
=(SELECT DISTINCT ([dbo_tblPODetail]![PARTID])
FROM (dbo_tblPODest INNER JOIN dbo_tblOrder ON [dbo_tblPODest]![ORDERID] = [dbo_tblOrder]![ORDERID]) INNER JOIN (dbo_tblPO INNER JOIN dbo_tblPODetail ON dbo_tblPO]![POID = [dbo_tblPODetail]![POID]) ON ([dbo_tblPODest]![POID] = [dbo_tblPODetail]![POID]) AND ([dbo_tblPODest]![LINEID] = [dbo_tblPODetail]![LINEID])
WHERE ((([dbo_tblPODetail]![PARTID])=[QAMFGQry]![PART_ID]) AND (([dbo_tblPO]![SUPPID])="HSISD"
AND (([dbo_tblPODetail]![URGENCY])<>"ROUTINE"
AND (([dbo_tblPODetail]![PODSTATUS])<"90"
AND (([dbo_tblOrder]![CUSTPO]) Is Not Null)))
When run as a new query this works as expected and returns data. When the code is put into a text box I get the #Name? (eh whats up doc) error. Tried to be real specific and also defined my table relationships. Can anyone spot an error, something I overlooked ?
Thanks for any suggestions ! Steve.
Steve Austin
MIS Department
Helicopter Support, Inc.
(p): (203)795-6051 Ext. 3378
(f): (203)799-5020
Have a report based on a query that works great. Wanted to add another text box to the report and base the field on another query. Here is the code.
=(SELECT DISTINCT ([dbo_tblPODetail]![PARTID])
FROM (dbo_tblPODest INNER JOIN dbo_tblOrder ON [dbo_tblPODest]![ORDERID] = [dbo_tblOrder]![ORDERID]) INNER JOIN (dbo_tblPO INNER JOIN dbo_tblPODetail ON dbo_tblPO]![POID = [dbo_tblPODetail]![POID]) ON ([dbo_tblPODest]![POID] = [dbo_tblPODetail]![POID]) AND ([dbo_tblPODest]![LINEID] = [dbo_tblPODetail]![LINEID])
WHERE ((([dbo_tblPODetail]![PARTID])=[QAMFGQry]![PART_ID]) AND (([dbo_tblPO]![SUPPID])="HSISD"
When run as a new query this works as expected and returns data. When the code is put into a text box I get the #Name? (eh whats up doc) error. Tried to be real specific and also defined my table relationships. Can anyone spot an error, something I overlooked ?
Thanks for any suggestions ! Steve.
Steve Austin
MIS Department
Helicopter Support, Inc.
(p): (203)795-6051 Ext. 3378
(f): (203)799-5020