Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

change report controls datasource programatically?

Status
Not open for further replies.

Bobnz

IS-IT--Management
Aug 19, 2002
116
NZ
is it possible to change a reports controls datasources programatically?
If so how?

B
 

Your question is a little vague. Are you trying to change the datasource for each individual control on the report? Then is answer is yes. It can be changed using VBA code. Consult the help text.

If your question is that you want to change the reports records source. Then the answer is yes. There is a sample report in the Northwind (sample) database. Open then print dialog form an look at the "Onclick" code for the print button.

I hope this helps

Good Luck...

 
I agree with HitechUser, little vague. But I use what he suggest for crosstab reports often.

So yes, possible.

ChaZ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top