R
RL
Afternoon all,
Is there a function in Access that does the equivalent of an indirect
function in Excel?
I have created a query and want one of the fields [AB] to be populated with
either fields [CD] or [EF] depending on the contents of field [GH].
I know I could do this example with an iif statement, but the real query
could bring back the contents of more than just two fields - I'd be here all
day writing a nested iff function!
Instead, I would like the query to build a reference to either field [CD] or
[EF] using the contents of [GH].
e.g. "[tbl.XY]![" & [GH] & "]"
At the moment, that would simply print the string [tbl.XY][CD] for example.
Is there a function which commands access bring back the contents of that
reference rather than just printing the string?
Any ideas??
Many thanks,
RL
Is there a function in Access that does the equivalent of an indirect
function in Excel?
I have created a query and want one of the fields [AB] to be populated with
either fields [CD] or [EF] depending on the contents of field [GH].
I know I could do this example with an iif statement, but the real query
could bring back the contents of more than just two fields - I'd be here all
day writing a nested iff function!
Instead, I would like the query to build a reference to either field [CD] or
[EF] using the contents of [GH].
e.g. "[tbl.XY]![" & [GH] & "]"
At the moment, that would simply print the string [tbl.XY][CD] for example.
Is there a function which commands access bring back the contents of that
reference rather than just printing the string?
Any ideas??
Many thanks,
RL