Error 536 (Incorrect logon parameters) when trying to logon to a access-db via PELogonServer 
Author Message
 Error 536 (Incorrect logon parameters) when trying to logon to a access-db via PELogonServer

I use Crystal Reports Developer. Version 8.5.0.217
Within my VB6-Programm I'm trying to logon to a secured Access-Database
(Access 97).
Now I have a ugly problem when distributing the programm:

* installed on WinME everything works fine. The reports starts without
error. (My devellopping-system is also WinME, maybe...)
* installed on Windows XP or Win 2000 the error 536 (Incorrect Logon
Parameters) occurs.

The only hint I found about that error was the Crystal-Knowledge-Base
Article "c2000028" (...call PESetNthTableLogonInfo and pass only the
ServerName and DatabaseName. Leave UserID and Password empty...).
But that doesn't help me, cause I need to use a special UserID and password
because of my secured database .
(And I'm not trying to connect to a Sql-Server)

I make the necessary registry-entries for ODBC "manually" in my programm.
Maybe that's the point; but why does it then work fine when installed on a
(new) WinME?

Has anybody any idea ?????

My code:
    LogOnInfo.ServerName = sServerName & Chr$(0)
    LogOnInfo.DatabaseName = sDatabaseName & Chr$(0)
    LogOnInfo.UserID = sUserId & Chr$(0)
    LogOnInfo.Password = sPassword & Chr$(0)

    If PELogOnServer("P2SODBC.DLL", LogOnInfo) = False Then
        'error handling
    End If

best regards
Marion



Mon, 20 Sep 2004 06:58:01 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Unable to connect: incorrect logon parameters

2. Unable To Connect: Incorrect logon parameters

3. Unable to connect: incorrect logon parameters

4. Unable to connect: incorrect logon parameters

5. Unable to connect: incorrect logon parameters

6. Help:How to avoid Oracle Logon window for VB to Oracle via attached Access

7. Logon to MS Access db

8. Unable to connect: incorrect logon message

9. Logon/No Logon

10. How can I get logon server name and IP address from logon script using wsh

11. Windows logon and logon over-ride

12. Error 536 Unable to connect when I run a crystal report from VB 4.0

 

 
Powered by phpBB® Forum Software