P
pubdude2003 via AccessMonster.com
Hi all, have an odd problem which I thought would be dead easy but has become
an afternoon project.
I would like to create a Select Query on a table containing numerous fields.
I want to to use a separate single record table to 'map' the field names from
the [Main Table] table into the Select Query (the Mappings table is
maintained from a form). Because of the specific application I cannot rename
fields or make a new table. My first thought was to use a DLookup to grab the
values from Mappings (the field names of the Main Table table) to select the
values for the query, but no soap.
SELECT (DLookUp("MasterID","Mappings")) AS MasterID, (DLookUp("Field1",
"Mappings")) AS Field1
FROM [Main Table];
Any ideas anyone?
an afternoon project.
I would like to create a Select Query on a table containing numerous fields.
I want to to use a separate single record table to 'map' the field names from
the [Main Table] table into the Select Query (the Mappings table is
maintained from a form). Because of the specific application I cannot rename
fields or make a new table. My first thought was to use a DLookup to grab the
values from Mappings (the field names of the Main Table table) to select the
values for the query, but no soap.
SELECT (DLookUp("MasterID","Mappings")) AS MasterID, (DLookUp("Field1",
"Mappings")) AS Field1
FROM [Main Table];
Any ideas anyone?