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.
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.