As others, I'm trying to set unbound fields in a crystal report to dynamic sourced recordsets. I've done what the manuals and books say:
But this also leads me to a '
' when it reached the "
etc..) line. Why is this? I (among others) could really use a hand here...
If it helps, I run this process on a command button click and at the end of all this, load the form with the report viewer that is tied into the report I want (being this one).
Should I be doing this in the load event for the form of the report viewer??? Someone please help before this drives me insane!!!!
Code:
dim report as new crystalreport1
set report = new crystalreport1
report.datasource.setdatasource recData
(recdata being the recordset of data)
crystalreport1.strfname = "(ado.firstname)"
But this also leads me to a '
Code:
subscript out of range error
Code:
report.datasource...
If it helps, I run this process on a command button click and at the end of all this, load the form with the report viewer that is tied into the report I want (being this one).
Should I be doing this in the load event for the form of the report viewer??? Someone please help before this drives me insane!!!!