antvon
Programmer
- Dec 2, 2002
- 45
Hi all
I'm looking for a way to reference a table/query field
name by using a variable.
Lets say I have a table with the following fields:
Customer
Budget1
Budget2
Budget3
.
.
Budget12
Where Budget1 is the Budget target for financial period 1
What I would like to do is create a query that refers to the budget field using a variable. eg
CurrentPeriodBudget:[Budget] & X
Where X = 2 for example
Does anyone know of a way to do this if at all possible?
Would I maybe need to use ADOX?
Thanks in advance
I'm looking for a way to reference a table/query field
name by using a variable.
Lets say I have a table with the following fields:
Customer
Budget1
Budget2
Budget3
.
.
Budget12
Where Budget1 is the Budget target for financial period 1
What I would like to do is create a query that refers to the budget field using a variable. eg
CurrentPeriodBudget:[Budget] & X
Where X = 2 for example
Does anyone know of a way to do this if at all possible?
Would I maybe need to use ADOX?
Thanks in advance