N
NevilleT
I have two tables.
- One lists values for a period (tblAllocation). The two relevant fields
are PeriodName and Allocation. e.g. PeriodName P1, Allocation 10%, PeriodName
P10, Allocation 5%
- The second lists the periods (tblPeriod), Relevant fields are PeriodNo
and PeriodTitle e.g. PeriodNo P1, PeriodTitle Jan 07, PeriodNo P10,
PeriodTitle Oct 07
I want to output to Excel and display the headers for each column as their
PeriodTitle (Oct 07) rather than their PeriodName (P10).
I know I could go in and manually set up the query e.g. Oct 07: P10 but
periods can be re-assigned over time. For example P1 may be Jan 07 now but
in a few years may be re-assigned to Jan 09 for example.
Is there a way to lookup another table and create an alias for the table
header?
- One lists values for a period (tblAllocation). The two relevant fields
are PeriodName and Allocation. e.g. PeriodName P1, Allocation 10%, PeriodName
P10, Allocation 5%
- The second lists the periods (tblPeriod), Relevant fields are PeriodNo
and PeriodTitle e.g. PeriodNo P1, PeriodTitle Jan 07, PeriodNo P10,
PeriodTitle Oct 07
I want to output to Excel and display the headers for each column as their
PeriodTitle (Oct 07) rather than their PeriodName (P10).
I know I could go in and manually set up the query e.g. Oct 07: P10 but
periods can be re-assigned over time. For example P1 may be Jan 07 now but
in a few years may be re-assigned to Jan 09 for example.
Is there a way to lookup another table and create an alias for the table
header?