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

SetDataSource method 1

Status
Not open for further replies.

FrozenCanuck

Programmer
Aug 24, 2000
1
0
0
US
I am trying to supply the report with a disconnected ADO recordset.

The report itself has no databases created, since it is relying on an incoming data source to populate the unbound fields.

Here is some VB code:

Dim rpt As New rptXRayInProcess
With rpt
.Database.SetDataSource rs
.ubXCN.SetUnboundFieldSource "XCN"
.ubWorkGroup.SetUnboundFieldSource "{wgNameRouteTo}"
End With

When I run this code I get the message.
"Subscript out of range"

I think this refers to the fact that there are no databases associated with the report.

Anyone know of a workaround, or if I'm doing something wrong.

Thanks in advance
 
Have you gotten an answer on this, I am getting the same exact error. I new to crystal reports so I'm not sure I doing it the right way.

Thanks,
Dennis [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top