I need to dyamically assign source-data fields (in RecordSource) to report (detail) fields (DAO) upon report load. (need to use one report-template for multiple queries of unknown field-names or number of fields.
(I have done the labels but cannot locate the properties the data fields)
Does anyone have a one-line assignment statement / code snippet that assigns source fields to report fields?
e.g. report.fields(2).ControlSource = Me.Recordsource.Fields(F2)
I can do the looping etc. just need the core properties.