accesswatcher
New member
- Local time
- Today, 11:21
- Joined
- Jan 14, 2000
- Messages
- 9
A DB in Access97 (Office97)has several reports. They all have the same data from the same table, and same format. But, each report derives the data from corresponding queries.
Origianlly I made several reprots by copying the first one and changed the "DataSource" and "Caption" properties manually for each report. Tehy work just fine.
All the reports are started by command button controls on a main user interface.
Now, I want to use code to set the "Caption" and "DataSource" properties of ONE SINGLE report to derive the several varaitions (based on diferent queries) to avoid having to keep all the different copies of the same report just with the difference of caption and datasource.. I want to be able to set those two properties while the user clicks the command button to open the report.
The Caption setting seem to work fine, but the DataSource property setting wont work.
Any Ideas? I would greatly appreciate any and all help.
Origianlly I made several reprots by copying the first one and changed the "DataSource" and "Caption" properties manually for each report. Tehy work just fine.
All the reports are started by command button controls on a main user interface.
Now, I want to use code to set the "Caption" and "DataSource" properties of ONE SINGLE report to derive the several varaitions (based on diferent queries) to avoid having to keep all the different copies of the same report just with the difference of caption and datasource.. I want to be able to set those two properties while the user clicks the command button to open the report.
The Caption setting seem to work fine, but the DataSource property setting wont work.
Any Ideas? I would greatly appreciate any and all help.