
Originally Posted by
pbaldy
I see a couple of solutions. One would be in your VBA that changes the query. You can use aliases to keep the field names in the report constant. Instead of
SELECT NewFieldName FROM ...
you'd have
SELECT NewFieldName AS OldFieldName FROM ...
and the report would see the old field names. Second, you can have code in the report's open event that opens a recordset on the report's source, and loop through the Fields collection to get the field names, with which you can set textbox control sources.