R
RyNC
Hi,
How do I select records in a table that each have a "cost" (which can vary
by record), in order to make up a certain "total cost" that I establish.
For example, I establish a "total cost" in my query of $1000. I want to
select records in a table from highest cost to lowest cost and stop selecting
records once I have selected enough records to make up my "total cost". The
selecting of records must go over the "total cost" but will stop with the
last record that makes it go over the "total cost". So in this example, I
will select the last record in which the total of all records' "cost" is
$1002.
Please help!
Ryan
How do I select records in a table that each have a "cost" (which can vary
by record), in order to make up a certain "total cost" that I establish.
For example, I establish a "total cost" in my query of $1000. I want to
select records in a table from highest cost to lowest cost and stop selecting
records once I have selected enough records to make up my "total cost". The
selecting of records must go over the "total cost" but will stop with the
last record that makes it go over the "total cost". So in this example, I
will select the last record in which the total of all records' "cost" is
$1002.
Please help!
Ryan