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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie: Cannot logon to Local Access Database

Status
Not open for further replies.

Jeroen002

Technical User
Jan 27, 2002
1
NL
Hi,

I'm trying to use the PELogonServer function in VBA to logon to a Local Access database. I have retrieved the logoninfo from the report(-job) by using GetNthTableLogOnInfo(MainJob, 0, LogOnInfo) for the involved table and the DLLName by using PEGetNthTableType(MainJob, i, TableType).

As far as I can see logoninfo and TableType are filled correctly and have multiple NULL characters at the end of the strings.

But PELogOnServer(TableType.DLLName, LogOnInfo) keeps on returning zero (= fails).

What am I doing wrong?

Thank you in advance,

Jeroen.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top