P
PayeDoc
Hello All
Is it possible to get the field name for a query from DATA within the
underlying tables?
e.g.
Table [x confirmed] with text field 'practice' (related to key field in
table [practices]) and currency fields 'budget
A', 'budget B', 'budget C' and 'budget D';
Table [practices] with text fields 'budget A alias', 'budget B alias',
'budget C alias' and 'budget D alias';
I would like the query to output the values of 'budget A', 'budget B',
'budget C' and 'budget D' in fields that are named according to the VALUES
of the corresponding 'alias' in [practices]. I know this would be easy with
a report, but I need it in the query so that I can export the data to csv
with meaningful field names.
I should emphasize that I need the query's field name to be the VALUE of the
corresponding field in [Practices] - not just "Aliasname" every time! The
values of the various aliases will change according to other parameters on
the current form, and I need the query's fields to pick up these varying
alias names.
I am sure this can be done - but simply cannoy see how!!
Hope someone can help.
Many thanks
Leslie Isaacs
Is it possible to get the field name for a query from DATA within the
underlying tables?
e.g.
Table [x confirmed] with text field 'practice' (related to key field in
table [practices]) and currency fields 'budget
A', 'budget B', 'budget C' and 'budget D';
Table [practices] with text fields 'budget A alias', 'budget B alias',
'budget C alias' and 'budget D alias';
I would like the query to output the values of 'budget A', 'budget B',
'budget C' and 'budget D' in fields that are named according to the VALUES
of the corresponding 'alias' in [practices]. I know this would be easy with
a report, but I need it in the query so that I can export the data to csv
with meaningful field names.
I should emphasize that I need the query's field name to be the VALUE of the
corresponding field in [Practices] - not just "Aliasname" every time! The
values of the various aliases will change according to other parameters on
the current form, and I need the query's fields to pick up these varying
alias names.
I am sure this can be done - but simply cannoy see how!!
Hope someone can help.
Many thanks
Leslie Isaacs