Hello All
I have a form that allows the user to receive parts by part number. The sales order number is the primary key. So when the user open the form, continous form, all of the sales orders that are waiting on that part number. I made a query to count the total number of parts that are missing for the sales order. It works, but when i try to incorporate the query in the form it gives a #name error. I used the query as the controlsource for a text box.
The idea is to allow the user to know the total number of parts that are needed to complete the staging of an order, so if there are a total of 3 other parts besides the part you are receiving, you can deside what sales order gets the part.
Here is the query:
SHould I be using a subform for this? I am not sure. Any suggestions will be greatly appreciated!
thanks in advance
raven
I have a form that allows the user to receive parts by part number. The sales order number is the primary key. So when the user open the form, continous form, all of the sales orders that are waiting on that part number. I made a query to count the total number of parts that are missing for the sales order. It works, but when i try to incorporate the query in the form it gives a #name error. I used the query as the controlsource for a text box.
The idea is to allow the user to know the total number of parts that are needed to complete the staging of an order, so if there are a total of 3 other parts besides the part you are receiving, you can deside what sales order gets the part.
Here is the query:
Code:
SELECT Count(tblstageparts.product) AS CountOfproduct
FROM tblstageparts
GROUP BY tblstageparts.sonum
HAVING (((tblstageparts.sonum)=[forms]![frmpurchasing]![sonum]));
SHould I be using a subform for this? I am not sure. Any suggestions will be greatly appreciated!
thanks in advance
raven