I am changing the database for my CR9 report at runtime using a Visual Basic application and this code:
For x = 1 To REPORTNAME.Database.Tables.Count
With REPORTNAME.Database.Tables(x).ConnectionProperties
.Item("Database"
= "DATABASENAME"
.Item("Server"
= "SERVERNAME"
.Item("User ID"
= "USERID"
.Item("Password"
= "PASSWORD"
End With
REPORTNAME.Database.Tables.Item(x).Location = REPORTNAME.Database.Tables.Item(x).Location
The database change is working for the main report, but I need some help in changing the database for the subreports. How do I loop thru the subreports in order to change their database?
Thanks.
For x = 1 To REPORTNAME.Database.Tables.Count
With REPORTNAME.Database.Tables(x).ConnectionProperties
.Item("Database"

.Item("Server"

.Item("User ID"

.Item("Password"

End With
REPORTNAME.Database.Tables.Item(x).Location = REPORTNAME.Database.Tables.Item(x).Location
The database change is working for the main report, but I need some help in changing the database for the subreports. How do I loop thru the subreports in order to change their database?
Thanks.