Looping through and array with three possible decisions to make
I am probably making this more complex than I need to, so what is the
simplest way to loop through an array, looking for possibly three common bits
of data and adding them together. Using a wine example... I am searching a
series of 800+ records for:
Wine Vendor
Wine Origin
Wine Category
The user would choose from a drop down, either vendor, origin or category,
and the macro calcs sales and costs based on the selections. For any of the
three, the user can choose "ALL" or a specific value in each group.
I started writing sub routines to take into account each possible option,
but hoped there might be an easier way... can anyone help with a shorter
solution?
Thanks!
|