
Error: server has not yet been opened
This message is somehow related to my previous one, "Newbie:
password-protected database".
When I try to preview a report in a VB5 procedure using CRViewer) I get the
following message:
"Run-time error: server has not yet been opened"
Then the program halts marking the following line:
crxReport.Database.LogOnServer "pdsodbc.dll", "", "", "", "password"
The CR help (developr.hlp) says I can pass the pServerName, pDatabaseName,
and pUserId parameters as "" (empty string), using then the settings of the
report. So, what's the problem? By the way, my database is an Access 2000
.mdb password protected file .
The best of it is that, when I try to print out directly (without
previewing), I don't get any error messages, but nothing gets printed out.
In fact, the "printing" window just flashes at the screen, then disappears.
Weird.
Well, I'm really lost as how to acces password-protected databases. Any help
will be most welcome!