Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

error : Unable to connect : incorrect logon parameter

Status
Not open for further replies.

macwan

Programmer
Apr 5, 2001
12
0
0
IN
I have created a report using crystal report. I want to call it from a vb form. After compiling ,it shows this error.
Unable to connect : incorrect logon parameter.
what is ther problem? how to remove it?
thanx for any help
 
What is the underlying database ?
Are you passing the appropriate parameters for logging onto this database (i.e. user-name + password) ?
Steve.
 
Use this syntax to open your Crystal.Application

Set m_objCrystalApp = New CRPEAuto.Application
m_objCrystalApp.LogOnServer "P2SODBC.DLL", DSN Name, , "UserName", "Password"

This should fix the problem. Crystal also expects you to open the crystal app when you open your VB app.

When your clients open your report they will have to have the DSN setup on their computer.

P2SODBC.DLL is used for ODBC compliant databases. There is another DLL for non-compliant databases
 
thanx fot great help.
but the database is access 2000 and i have not given any password or user name. so that's the problem.
thanx again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top