Originally Posted by
June7
If a query object is referenced as the RecordSource for a form or report, the query 'runs' when the form or report is opened. In my test I actually built the SQL right in the form's RecordSource, did not reference a query object.
With form or report in design view, click the AddExistingFields button on the Design tab. This will list fields from the RecordSource.
No, code like that not possible in controls. Set textbox ControlSource property to field of the form/report RecordSource. Use the 'drag from field list' method.