Hi,
I cannot find a thread relating exactly to my topic as I need it, and I need help with min max functions. I am using a select query to pull from a couple of warehouse inventory style tables to give me part number, description, cost, and qty. The cost and qty fields are listed by location and are grouped. So on the record after description, you would see cost for location 002, qty for 002, and so on by location. I need to locate the min and max of cost/qty by record. Moreover, as I mentioned, the cost and quantity are grouped by location. So the function would, in my mind, be operating from defined fields (a,c,e..) and not a range of fields (a:e).
So for a records I would need to see, part number, description, all of my cost/qty fields, then min of cost, then if possible in an adjacent field the name of field or location that this data was retrieved, then max cost, then again with another field depicting field name/location in which data was retrieved. This process adjacent to that would need to repeat for qty.
Hopefully I simplified my wants and needs. If I could achieve this, then I would really be making some progress. Any response is appreciated.
Thanks,
Rob
I cannot find a thread relating exactly to my topic as I need it, and I need help with min max functions. I am using a select query to pull from a couple of warehouse inventory style tables to give me part number, description, cost, and qty. The cost and qty fields are listed by location and are grouped. So on the record after description, you would see cost for location 002, qty for 002, and so on by location. I need to locate the min and max of cost/qty by record. Moreover, as I mentioned, the cost and quantity are grouped by location. So the function would, in my mind, be operating from defined fields (a,c,e..) and not a range of fields (a:e).
So for a records I would need to see, part number, description, all of my cost/qty fields, then min of cost, then if possible in an adjacent field the name of field or location that this data was retrieved, then max cost, then again with another field depicting field name/location in which data was retrieved. This process adjacent to that would need to repeat for qty.
Hopefully I simplified my wants and needs. If I could achieve this, then I would really be making some progress. Any response is appreciated.
Thanks,
Rob