GUIDO22
Registered User.
- Local time
- Today, 04:16
- Joined
- Nov 2, 2003
- Messages
- 515
I have a RATES table that holds a handful of records for a number of departments. Each department has its own rateable value.
I also have a handful of different reports that display costing data for each department and I need to utilise the RATE value for the appropriate department on each of these reports.
At present, the report is bound to a query that prompts the user to enter the appropriate rate each time the report is run. But, I wish to use the stored value for the dept. in the RATES table.
The problem I am having is that the RATES table contains no key to any of the other tables from which I am reporting on and so I cannot incorporate the RATES table into the QUERY design window.
I presume I need a lookup value and then need to apply the lookup value (ie. the department rate) to the report Query. But what is the sequence of operation here and where would the lookup value go : on the report, VBA code ?
Any ideas on how best to do this please?
NB. Is it possible to pass the lookup RATE parameter to the report query from VBA?
Thank you.
Guido
I also have a handful of different reports that display costing data for each department and I need to utilise the RATE value for the appropriate department on each of these reports.
At present, the report is bound to a query that prompts the user to enter the appropriate rate each time the report is run. But, I wish to use the stored value for the dept. in the RATES table.
The problem I am having is that the RATES table contains no key to any of the other tables from which I am reporting on and so I cannot incorporate the RATES table into the QUERY design window.
I presume I need a lookup value and then need to apply the lookup value (ie. the department rate) to the report Query. But what is the sequence of operation here and where would the lookup value go : on the report, VBA code ?
Any ideas on how best to do this please?
NB. Is it possible to pass the lookup RATE parameter to the report query from VBA?
Thank you.
Guido
Last edited: