Am exporting a query result to excel, but the table being queried only stores the foreign key values. So the query references the lookup table in order to export the display value. All is well.
However the Column Header is then the Column Header/ Caption of the lookup table
I use the lookup table for many data tables so I cannot change its field name / caption as it wouldn't be appropriate in all cases. (lookup table is Employees; the Caption is 'Full Name').
The fields that use the lookup have various names, i.e. 'Created By' 'Reported By' 'Closed By' etc which are the captions on the data tables.
Just using the DoCmd.OutputTo acOutputQuery function...
What to do?!?