L
Lee Buehler
I have created a macro to open several queries in order to calculate a
complex set of operations.
The first macro command is to open a select query which selects all seller
records for a particular event. This query then sums the quantity for each
product sold. It then updates the Seller record with the total products
sold to the "Total Units" field in the seller table.
The second macro command is to open a Make Table query which uses the same
dynaset to compile the total unit and count of sellers info to update the
Event table.
My problem is that in the first query, I make the dynaset selection with a
"[Enter Event Code]" criteria for the event code field in the seller table.
To get the same dynaset for the second query, I did the same thing again.
This causes the operator to have to enter the "Event code" when the macro
first begins, and then she is required to re-enter the same event code for
each successive query within the macro.
Is there a way to carry this variable, once entered, through the macro and
each of the succeeding queries?
Lee
complex set of operations.
The first macro command is to open a select query which selects all seller
records for a particular event. This query then sums the quantity for each
product sold. It then updates the Seller record with the total products
sold to the "Total Units" field in the seller table.
The second macro command is to open a Make Table query which uses the same
dynaset to compile the total unit and count of sellers info to update the
Event table.
My problem is that in the first query, I make the dynaset selection with a
"[Enter Event Code]" criteria for the event code field in the seller table.
To get the same dynaset for the second query, I did the same thing again.
This causes the operator to have to enter the "Event code" when the macro
first begins, and then she is required to re-enter the same event code for
each successive query within the macro.
Is there a way to carry this variable, once entered, through the macro and
each of the succeeding queries?
Lee