Dim db as database
DBEngine.SystemDB = "<MyFilespec>.mdw"
DBEngine.DefaultUser = "MyUserID"
DBEngine.DefaultPassword = "MyPassword"
Set db = OpenDatabase("<MyFileSpec>.mdb", False, False, ""
I am having the problem so setting the database location at run-time for the Crystal Report. I tried using connect and it keeps giving me an error SQL Server not started and ends. I needs to be able to set the database location at run-time since the location my differ from client to client.
I am using ADO and a Microsoft Access database that is secured.
If you've found an answer to your issue, could you share it with me? I'm working on something similar, i need my reports to jump to different SQL Servers at runtime. If i figure it out in the meantime, i'll let you know. Thanks.
I am using recordset to overcome this problem. At runtime I execute the SP from my ASP Page and pass recordset to the Crystal Reports. You can link recordset using ttx Files.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.