Hello all
I have a report that groups Sales orders by week due. Now they want this information displayed in an editable form. The same way it displays on the report and i am having trouble getting this to display correctly.
I am using two tables - tblorder and tblitems I am using a due date as the date to get the week number.
here is the code i used for the report:
I have a report that groups Sales orders by week due. Now they want this information displayed in an editable form. The same way it displays on the report and i am having trouble getting this to display correctly.
I am using two tables - tblorder and tblitems I am using a due date as the date to get the week number.
here is the code i used for the report:
Code:
SELECT tblorder.sonum, tblorder.Customer, tblorder.productClass, tblorder.podate, tblorder.deliverydate, tblorder.wip, tblorder.comments, tblorder.reqdate, tblorder.ackdate, tblorder.wsnum, tblorder.prodreq, tblorder.status, tblorder.sstage, tblorder.fstage, tblorder.sapprec, tblorder.prodque, tblorder.engcompdate, tblorder.engreq, DatePart("ww",[reqdate]) AS WkNo, Year([reqdate]) AS YRNO, tblitems.itemqty, tblitems.itemnum, tblitems.itemrate
FROM tblorder INNER JOIN tblitems ON tblorder.sonum = tblitems.sonum
WHERE (((tblorder.productClass)<>"mining") AND ((tblorder.deliverydate) Is Null))
ORDER BY tblorder.sonum, tblorder.productClass;
[\code]
I have tried to use a main form with just the week number and the subform with the query above using the week number as the master and child link fields, it give unstable results ( there should only be 150 records but it has 1000's records in results)
Any info as to what i am doing wrong would be greatly appreciated.
Thanks
Raven