mustangcoupe
Technical User
I am running a query from a command button on my form it works on AC2000 but not on 2003.... [forms]![job_form]![jobID] in the criteria in field JobID and [forms]![job_form]![atr_subform]![ATRID] in the criteria in field ATRID
If I run it without anything in the criteria line it runs fine.... But when I run it with the above criteria it displays nothing. If I run it with the form closed and I am prompted I enter good data in the two prompts I get good data back! any suggestions? full query below
--Todd
TechnicalUser pretending to be a programmer(shhh… the boss doesn’t know yet)
If I run it without anything in the criteria line it runs fine.... But when I run it with the above criteria it displays nothing. If I run it with the form closed and I am prompted I enter good data in the two prompts I get good data back! any suggestions? full query below
Code:
SELECT tbl_ATR.ATRID, tbl_job.JobID, tbl_job.Jobnumber, tbl_customer.CustomerName, tbl_eut.Sample, tbl_eut.ModelNumber, tbl_ATR.ATRDATE, tbl_ATR.ATRDescription, tbl_ATR.ATRAmount, lu_location.Location, tbl_job.PONumber
FROM ((lu_ATR_Desctiption RIGHT JOIN (((tbl_contact RIGHT JOIN (tbl_customer RIGHT JOIN tbl_job ON tbl_customer.CustomerID = tbl_job.CustomerID) ON tbl_contact.ContactID = tbl_job.ContactID) LEFT JOIN tbl_ATR ON tbl_job.JobID = tbl_ATR.JOBID) LEFT JOIN tbl_eut ON tbl_job.JobID = tbl_eut.JobID) ON lu_ATR_Desctiption.ATRDESCRIPTIONID = tbl_ATR.ATRReason) LEFT JOIN lu_location ON tbl_job.Location = lu_location.LocationID) LEFT JOIN lu_ContactPosition ON tbl_contact.ContactPosition = lu_ContactPosition.ContactPositionID
WHERE (((tbl_ATR.ATRID)=[forms]![job_form]![atr_subform]![ATRID]) AND ((tbl_job.JobID)=[forms]![job_form]![jobID]));
--Todd
TechnicalUser pretending to be a programmer(shhh… the boss doesn’t know yet)