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!

Set DataSource in runtime for CrystalReport containing two database

Status
Not open for further replies.

WFadloun

Programmer
Aug 18, 2003
42
AE
Hello all
I am using Crystal activeX desinger in my VB6 application,
I have 2 database sources in this report and linked to each other.
When trying to DiscardSavedData and set new data source(in runtime) I got error message "unable to access first record"

is discardsaveddata method effect the two databases included in the report,,, and if so how to set new data sources for them both

any help will be appriciated

thanks in advance
 
problem solved

MyReport.DiscardSavedData
Myreport.database.tables.item("Data1").SetDataSource Rst1
Myreport.database.tables.item("Data2").SetDataSource Rst2


regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top