Lets say i have 2 tables (ok i really do). One is tblShipping, the other is tblShippingDeta ils. I need to run a query to find all of the maximum values of a qty backordered, so that i can find out what is left to so that i can multiply it by its price and determine how much is still left to ship, but for all open orders. We do partial shipments, and i am not recording the ship values on another table, it is appending the original table, because so many of the values change.
So I decided that i would find the maximum backordered qty, subtract it from the original qty, then multiply what is left by the unitprice. I know how to write a temp table, use dmax("QTYBackOr der","tblShippi ngDetails","Job Number ='" & [this is the problem part]) to get the value from the details table, how do i then move to the next job number to look for the max "qtybackord er". I am not sure how to look for the next job number to write to a temp table so that i am just reading a table with all of the max quantities.
Should i first sort the table, if i do, how do i move to the next different JobNumber. I hope i have given enough information. If i knew how to find the max for each jobnumber with a query(wizard of course, sql scares me, lol) then i would just use the qry as the record source, but i couldnt figure it out. I couldnt figure out what criteria to use for job number..... or how to word it.
Any help is greatly appreciated. If i havent given enough information, feel free to tell me.
So I decided that i would find the maximum backordered qty, subtract it from the original qty, then multiply what is left by the unitprice. I know how to write a temp table, use dmax("QTYBackOr der","tblShippi ngDetails","Job Number ='" & [this is the problem part]) to get the value from the details table, how do i then move to the next job number to look for the max "qtybackord er". I am not sure how to look for the next job number to write to a temp table so that i am just reading a table with all of the max quantities.
Should i first sort the table, if i do, how do i move to the next different JobNumber. I hope i have given enough information. If i knew how to find the max for each jobnumber with a query(wizard of course, sql scares me, lol) then i would just use the qry as the record source, but i couldnt figure it out. I couldnt figure out what criteria to use for job number..... or how to word it.
Any help is greatly appreciated. If i havent given enough information, feel free to tell me.
Comment