
Crystal Report & .mdb files under VB6
As long as the SELECT clause in your SQL is the same, and the datatypes for
the selected fields are the same, you should be able to go to any database
at run time.
If using DAO, open the DATABASE object (pointing the whatever database),
open the recordset of interest and then use the SetDataSource method of the
REPORT object to pass the recordset to the report.
Joe
Quote:
>Do you have a solution to use crystal report (.rpt files) under VB6 when de
>database you use in .rpt file is not always the same.
>In my VB6 program, the user can choose the .mdb file, so when user
>ask for a report, i have not the same database.
>Is it possible to send a parameter to CrystalReport objet ?
>Thanks for information
>Rudy