I'm writing an VB app that needs to display reports. The reports are already in .rpt files, so I just need to call them (I'm using the OCX method).
I have gotten it to work by hardcoding the database information, like this:
but now I need to run the app in two different systems, so I'm trying to find a better way to connect to the db. Can I use a system DSN? How is it done? Any code samples would really help.
Thanks,
Monica
I have gotten it to work by hardcoding the database information, like this:
Code:
With frmReportSelect.rptReport
.Connect = "DSN=MyServerName;UID=user;PWD=password;DSQ=MyDatabaseName"
End With
Thanks,
Monica