I am working on a Purchase Order Database and am trying to setup a form to handle the receipt of goods.
At the moment I have a [PO Table] for the official order details which is linked to a [PO Sub Table] by Order Number. The [PO Sub Table] handles the body of the Order. I have a separate table linked to the [PO Sub Table] by line number, which records the receipt of goods against each particular line number. This makes sure that on my form, users can keep receiving goods on each particular line item until the line has been completely received, no matter how many deliveries it takes to achieve this. My form is setup to display calculated controls which display the qty ordered, qty rec'd and qty backordered, each time goods are received for each line item on the SubForm, (this part works fine).
However, I am trying to design my underlying query to ignore line items which have been received in full. At the moment it ignores line items that have been fully received in one delivery. But, when a line has been fully received over several deliveries, it still displays on the form. (My Form also displays that line number as many times as there have been goods receipted on the subform, this is really annoying!!)
I need some clever person to show me how to construct my query so that my form will display only records where the [Qty Ordered] from (PO Sub Table) is greater than the [QtyRecd] from (PO Material Reception Table), remembering that I need to caluclate the sum of [QtyRecd] for each line number on an order.
Would you know of a way that I can get my form & subform to display only those line items which have an outstanding balance?
Desperately needing help!!! Thanks.
At the moment I have a [PO Table] for the official order details which is linked to a [PO Sub Table] by Order Number. The [PO Sub Table] handles the body of the Order. I have a separate table linked to the [PO Sub Table] by line number, which records the receipt of goods against each particular line number. This makes sure that on my form, users can keep receiving goods on each particular line item until the line has been completely received, no matter how many deliveries it takes to achieve this. My form is setup to display calculated controls which display the qty ordered, qty rec'd and qty backordered, each time goods are received for each line item on the SubForm, (this part works fine).
However, I am trying to design my underlying query to ignore line items which have been received in full. At the moment it ignores line items that have been fully received in one delivery. But, when a line has been fully received over several deliveries, it still displays on the form. (My Form also displays that line number as many times as there have been goods receipted on the subform, this is really annoying!!)
I need some clever person to show me how to construct my query so that my form will display only records where the [Qty Ordered] from (PO Sub Table) is greater than the [QtyRecd] from (PO Material Reception Table), remembering that I need to caluclate the sum of [QtyRecd] for each line number on an order.
Would you know of a way that I can get my form & subform to display only those line items which have an outstanding balance?
Desperately needing help!!! Thanks.