-
how can i connect my crystal report to my database and tables? what is my parameter in the "reportconnect" property of crystal report?
-
I don't have the environment to test these two codes
in this moment, but last time I had done these before.
For Microsoft Access
me.cr.ReportFileName = <report file name>
me.cr.PrintReport
For SQL Server
me.cr.Connect = "ODBC;DSN=MyDSN;UID=admin;PWD=admin;Driver={SQL Server}"
me.cr.PrintReport
Hope it will help
Regards
Keiko
-
why dont you just connect to the database using crystal reports. If you a beginnr with crystal reports just use file new and start with a template that will ask whatr database you want to connect to