-
1
- #1
FrozenCanuck
Programmer
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
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