GUIDO22
06-16-2008, 01:44 AM
I have an ORDERS table that holds order information along with an EXPORT flag. The CUSTOMERS table has an exchange rate reference within.
I also have an EXCHANGE RATES Table (updated monthly, sometimes twice a month), that holds currency exchange rate information.
I need to report on the orders,customers table and match the appropriate exchange rate to the ORDER item.
Presently, I have a query that retrieves all orders received for the month in question - how can I determine the actual exchange rate from the rates table in one neat/ concise query? Will I need two/three queries?
I will want to report on a particular month to see all orders that have been received. So, I will select say April on my form - the code will need to retrieve a subset of exchange rate info for April 2008 (if there is more than one rate entry for the same currency I will use the higher value), and then use these rates for the top level query to match to the corresponding order items.....
Any good ideas on how to do this cleanly, will be received with open arms!
Thank you.
:p
I also have an EXCHANGE RATES Table (updated monthly, sometimes twice a month), that holds currency exchange rate information.
I need to report on the orders,customers table and match the appropriate exchange rate to the ORDER item.
Presently, I have a query that retrieves all orders received for the month in question - how can I determine the actual exchange rate from the rates table in one neat/ concise query? Will I need two/three queries?
I will want to report on a particular month to see all orders that have been received. So, I will select say April on my form - the code will need to retrieve a subset of exchange rate info for April 2008 (if there is more than one rate entry for the same currency I will use the higher value), and then use these rates for the top level query to match to the corresponding order items.....
Any good ideas on how to do this cleanly, will be received with open arms!
Thank you.
:p