I have a query which I am trying to return values for a month, showing sales orders received, however the year is variable based on chosen year in a form Combo10...can anyone help me out on the code for this?
SELECT RFQDetail.Customer, PO.Direct, PO.Hub, IIf(PO.POCurrency="GBP",PO!POUnitPrice*PO!QtyOrdered*forms!SalesOrdersExport!Text70) AS calculatedtotal, IIf(PO.POCurrency="EUR",PO!POUnitPrice*PO!QtyOrdered*forms!SalesOrdersExport!Text68) AS calculatedtotal1, IIf(PO.POCurrency="USD",PO!POUnitPrice*PO!QtyOrdered) AS calculatedtotal2, IIf(PO.POCurrency="RMB",PO!POUnitPrice*PO!QtyOrdered*forms!SalesOrdersExport!Text95) AS calculatedtotal3, PO.Date, PO.POCurrency
FROM RFQTracker INNER JOIN (RFQDetail INNER JOIN PO ON RFQDetail.ItemID = PO.ItemID) ON RFQTracker.RFQ = RFQDetail.RFQ
WHERE (((PO.Date)=#1/1/2005#));
at present you will note the date is fixed at 1/1/2005, i would like this to show a whole month for the particular year chosen in the combo box...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.