GaelicFatboy
Registered User.
- Local time
- Today, 22:21
- Joined
- Apr 17, 2007
- Messages
- 100
Hi All,
I've got a report where I want to set the record source to one of six queries using code when I click a command button, and then fire up its print preview. The problem is the code keeps throwing up an error message saying I cannot change the record source once I've loaded the report for printing, but if I try to define the record source prior to loading the report another error is generated telling me to load the report first.
Is it possible to set the record source for a report then fire up the print preview all using VB and from a single kick of a command button.
Cheers for any help.
D
I've got a report where I want to set the record source to one of six queries using code when I click a command button, and then fire up its print preview. The problem is the code keeps throwing up an error message saying I cannot change the record source once I've loaded the report for printing, but if I try to define the record source prior to loading the report another error is generated telling me to load the report first.
Is it possible to set the record source for a report then fire up the print preview all using VB and from a single kick of a command button.
Cheers for any help.
D