Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Microsoft Access Error 3071

Status
Not open for further replies.

jessef1980

Technical User
Sep 17, 2010
5
US
I wrote a query that works on some computers but not others. I don't understand why it would do this. Here is the SQL of it


PARAMETERS [Enter Start Date:] DateTime, [Enter End Date:] DateTime;
SELECT Employee.Emp, SYSADM_PRODUCT_SIZE.STYLE, SYSADM_RECEIPT_LINE.QTY, SYSADM_CUSTOMER.LAST_NAME, SYSADM_RECEIPT_LINE.SELLING_PRICE
FROM (((SYSADM_RECEIPT_LINE INNER JOIN SYSADM_PRODUCT_SIZE ON SYSADM_RECEIPT_LINE.SKU = SYSADM_PRODUCT_SIZE.SKU) INNER JOIN Employee ON SYSADM_RECEIPT_LINE.SALES_ASSOCIATE = Employee.SALES_ASSOCIATE) INNER JOIN SYSADM_RECEIPT ON SYSADM_RECEIPT_LINE.RECEIPT_ID = SYSADM_RECEIPT.RECEIPT_ID) INNER JOIN SYSADM_CUSTOMER ON SYSADM_RECEIPT.CUSTOMER_ID = SYSADM_CUSTOMER.CUSTOMER_ID
WHERE (((SYSADM_RECEIPT_LINE.QTY)<>0) AND ((CDate(Left([SYSADM_RECEIPT]![SALES_DATE],10))) Between [Enter Start Date:] And [Enter End Date:]) AND ((SYSADM_RECEIPT_LINE.SALES_CODE)="S") AND ((SYSADM_PRODUCT_SIZE.VENDOR_NO)="31") AND ((SYSADM_RECEIPT_LINE.DEPARTMENT)<>"Misc"))
ORDER BY CDate(Left([SYSADM_RECEIPT]![SALES_DATE],10));


It is a very complex query. I do have two parameters set. Thanks for the help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top