I am using Windows 10, Office 2019 64 bit.
I am calling a function in a third party dll with :
Dim nreturn As Long
nReturn = XPRMinit
where XPRMinit is defined as :
Declare PtrSafe Function XPRMinit Lib "xprm_rt" () As Long
In Excel VBA, the code executes OK, but in Access VBA, I get a 'Run Time error '53' : File not found : xprm_rt message.
The xprm_rt.dll file is located in a folder defined in the Environment Path variable. I have tried :
1 copying it to Windows/System32
2 Registering it (it fails)
3 Adding it to VBA references (it wont)
all without success
and I can see XPRMinit in the Object browser.
Any ideas please ?
Bookmarks