CR 7, VB6, new to CR programming.
I'm developing an app for which I want to include basic reporting. The app includes a simple "flat file" Access97 database. The end-user will be able to site the mdb file at will, but will have to inform the app of its location and that info is stored in an application-level variable.
I created a form in the CR IDE specifying "Active Data" and a DAO connection (I'm using DAO in the project since DAO is still faster than ADO for accessing Jet db's). I'm not using OBDC.
I've developed two different reporting solutions, one using the CRPE Automation Server and one using the OCX (after I was stymied with CRPE).
Using either method (but the OCX now preferred), how can I point the report to a variable data source.
report.database.tables("table".SetDataSource only appears to accept a recordset as the datasource (which I'd prefer to avoid).
OCX.DataFiles and
OCX.DataSource don't work for me -- even when I add a data control and reference it with DataSource.
Any help you could provide would be greatly appreciated.
TIA
John
DimWit as Formless
I'm developing an app for which I want to include basic reporting. The app includes a simple "flat file" Access97 database. The end-user will be able to site the mdb file at will, but will have to inform the app of its location and that info is stored in an application-level variable.
I created a form in the CR IDE specifying "Active Data" and a DAO connection (I'm using DAO in the project since DAO is still faster than ADO for accessing Jet db's). I'm not using OBDC.
I've developed two different reporting solutions, one using the CRPE Automation Server and one using the OCX (after I was stymied with CRPE).
Using either method (but the OCX now preferred), how can I point the report to a variable data source.
report.database.tables("table".SetDataSource only appears to accept a recordset as the datasource (which I'd prefer to avoid).
OCX.DataFiles and
OCX.DataSource don't work for me -- even when I add a data control and reference it with DataSource.
Any help you could provide would be greatly appreciated.
TIA
John
DimWit as Formless