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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing Datasets on the fly...

Status
Not open for further replies.

Peager

Programmer
May 27, 2003
140
US
Does anyone have a technique for passing a parameter to a report to cause alternate datasets to be selected? We need to be able to 'switch' between two different but similar databases.

Paul
 
I think I understand your question, try this.

My parameters are as follows:
Name: Database
Data type: String
Default values: Non-queried <defaultdb>

My Data source is setup with the following in the connection string

="data source=yourdatasourcename; initial catalog=" & Parameters!Database.value


hope this helps.
Jacque
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top