rpathy1974
MIS
I needed to refresh my report data every time I print to include the new records entries which was made to my database. For this I turned off the save data option in Crystal Reports and tried logging onto the server from VB.
CrystalReports.LogOnServer "p2sodbc.dll", "a", "b", "c", "d"
Where a = my (ODBC) system dsn name
b = SQL SERVER database name
c = SQL SERVER authentication login id
d = password
But I'm getting a error
run time error : 20599
"cannot open Sql Server"
Somebody please help me in this and let me know where I'm going wrong.
CrystalReports.LogOnServer "p2sodbc.dll", "a", "b", "c", "d"
Where a = my (ODBC) system dsn name
b = SQL SERVER database name
c = SQL SERVER authentication login id
d = password
But I'm getting a error
run time error : 20599
"cannot open Sql Server"
Somebody please help me in this and let me know where I'm going wrong.