L
lackeysc
I put this in the formscoding group but didn't get a response so I am
trying it here. Thanks in advance for any help.
I basically have a parameter query in which a customerID is entered
and returns up to 6 records containing the names of price books that
apply to that customer. The price books are each in their own tables
(db5 files created by our ERP system) which I have linked to in
Access. I'd like to use the pricebook field in the parameter query to
union the price books together.
For example, if the the price books were named PB1, PB2,
PB3... ...PB99 and the CustomerID entered was A1, the parameter query
results would look something like this:
A1 PB6
A1 PB17
A1 PB32
A1 PB64
From those results I would like to click a button which would create
a union query or create a temporary table with the results of the
following
union:
Select * from PB6
union
Select * from PB17
union
Select * from PB32
union
Select * from PB64
Assuming that the above union query can be created, I would then need
to run a grouped query against the parameter query which would be
grouped by the ItemNumber field and return the
min(price) for each item.
Thanks again for your help!
trying it here. Thanks in advance for any help.
I basically have a parameter query in which a customerID is entered
and returns up to 6 records containing the names of price books that
apply to that customer. The price books are each in their own tables
(db5 files created by our ERP system) which I have linked to in
Access. I'd like to use the pricebook field in the parameter query to
union the price books together.
For example, if the the price books were named PB1, PB2,
PB3... ...PB99 and the CustomerID entered was A1, the parameter query
results would look something like this:
A1 PB6
A1 PB17
A1 PB32
A1 PB64
From those results I would like to click a button which would create
a union query or create a temporary table with the results of the
following
union:
Select * from PB6
union
Select * from PB17
union
Select * from PB32
union
Select * from PB64
Assuming that the above union query can be created, I would then need
to run a grouped query against the parameter query which would be
grouped by the ItemNumber field and return the
min(price) for each item.
Thanks again for your help!