I have a query called "Request". I have a second query called "OpenPO". Each query has a field called "MHPartNumber" In the request query, MHPartNumber is the primary key, or it only will appear once. In the OpenPO query, there may be multiple occasions of the same MHPartNumber. In the OpenPO query, I have a field called "QtyOpen". What I am trying to do is use a DSum function in one of the Request query fields that calculates the sum of the QtyOpen fields in the OpenPO query where the MHPartNumber of the OpenPO query equal the MHPartNumber of the record or line in the Request query. Wow, what a mouth full. I hope this makes sense. I cannot get the criteria to work. Here is the function typed into the field of the Request Query:
Open: DSum("[QtyOpen]","OpenPO",What goes here?!?)
Without the criteria, I get the total sum of all entries in the OpenPO query. I only want the sum of the entries where the MHPartNumber of the summed items equals the MHPartNumber of the record or line the function is typed in.
God Bless anyone who can help me!
Thanks in advance!
Open: DSum("[QtyOpen]","OpenPO",What goes here?!?)
Without the criteria, I get the total sum of all entries in the OpenPO query. I only want the sum of the entries where the MHPartNumber of the summed items equals the MHPartNumber of the record or line the function is typed in.
God Bless anyone who can help me!
Thanks in advance!