ClaraBarton
Registered User.
- Local time
- Yesterday, 20:21
- Joined
- Oct 14, 2019
- Messages
- 472
Code:
DoCmd.OpenReport TempVars!Report, acViewDesign, , , acHidden
Reports!TempVars!Report.RecordSource = strSql
DoCmd.Close acReport, TempVars!Report, acSaveYes
What is the proper syntax for line 2?
Or is there a better way to change the recordsource?