Another way to solve this problem might be to use an intermediate query if
only one imported table is involved. You can alias the changed field names to
the proper names and run all your other queries against the intermediate query.
SO your intermediate query might look something like this short sample query.
SELECT GoodFieldNameA
, BadFieldNameB as GoodFieldNameB
, BadFieldNameC as GoodFieldNameC
, GoodFieldNameD
, GoodFieldNameE
, BadFieldNameF as GoodFieldNameF
FROM [TableImported]
If you don't want to change the 60 queries that you run, then change the name
of TableImported to TableImportedSource and Save the query as TableImported.
Tables and queries share the same name space, so your existing queries will
automatically use the query named TableImported instead of the table that was
named TableImported.
You would just have to change the source table name in the intermediate query.
John Spencer
Access MVP 2002-2005, 2007-2008
The Hilltop Institute
University of Maryland Baltimore County
Steve said:
Hi,
I have about 60 queries that I run on imported data. Now all of a sudden
about 20 of the field names are now changed/different in my imported data.
Is there an easy way to update those field names for my existing
queries/reports?
Thanks in advance,
Steve