I am having trouble binding my ado recordset to my report that I designed in the Crystal Report 8 design from within Visual Basic 6.0. The report "crUnboundFields" contains a report with 6 unboundstring fields.
My recordsetset contains 6 fields. While debugging I can dump out my data fine using the VB debugger. However, prior to assigning my unboundfields, I get a runtime error 9, Subscript out of range error.
I have never used unboundfields before. I have frequently used the setDatasource method successfully with bound fields.
If anyone can give me any help I would really appreciate it.
Thanks
Craig Adams
dim RptAttributeRpt as crUnboundFields
Set RptAttributeRpt = New crUnboundFields
The following line produces a "Runtime Error 9 Subscript out of Range" error.
RptAttributeRpt.Database.SetDataSource Rs,3
'Program errors before getting to this line.
'Binding to recordset fields happen here
RptAttributeRpt.Field1.SetUnboundFieldSource "{ado.ID"}"
......
My recordsetset contains 6 fields. While debugging I can dump out my data fine using the VB debugger. However, prior to assigning my unboundfields, I get a runtime error 9, Subscript out of range error.
I have never used unboundfields before. I have frequently used the setDatasource method successfully with bound fields.
If anyone can give me any help I would really appreciate it.
Thanks
Craig Adams
dim RptAttributeRpt as crUnboundFields
Set RptAttributeRpt = New crUnboundFields
The following line produces a "Runtime Error 9 Subscript out of Range" error.
RptAttributeRpt.Database.SetDataSource Rs,3
'Program errors before getting to this line.
'Binding to recordset fields happen here
RptAttributeRpt.Field1.SetUnboundFieldSource "{ado.ID"}"
......