G
Guest
Hello!
A while ago a user requested an Access database that would give some of the
same functionality as Excel. I stooped to naming columns with year names,
and now that the new year is approaching the only glitch will be one very
important column in a query:
Bill_Rates:
IIf(Year([Transaction_date])=2005,[Rates].[2005],IIf(Year([Transaction_date])=2004,[Rates].[2004],IIf(Year([Transaction_date])=2003,[Rates].[2003],IIf(Year([Transaction_date])=2002,[Rates].[2002],0))))
I would love to put in: bill_rates: [rates].[Year(transaction_date)]
but, that wouldn't work - all just to use the field: [rates].[2005].
QUESTION:
Within a query, is there any way to point to the correct field without using
it's name?
I appreciate your help,
Michele
A while ago a user requested an Access database that would give some of the
same functionality as Excel. I stooped to naming columns with year names,
and now that the new year is approaching the only glitch will be one very
important column in a query:
Bill_Rates:
IIf(Year([Transaction_date])=2005,[Rates].[2005],IIf(Year([Transaction_date])=2004,[Rates].[2004],IIf(Year([Transaction_date])=2003,[Rates].[2003],IIf(Year([Transaction_date])=2002,[Rates].[2002],0))))
I would love to put in: bill_rates: [rates].[Year(transaction_date)]
but, that wouldn't work - all just to use the field: [rates].[2005].
QUESTION:
Within a query, is there any way to point to the correct field without using
it's name?
I appreciate your help,
Michele