in reply to Re: Win32::OLe and OpenCurrentDatabase
in thread Win32::OLe and OpenCurrentDatabase

thanks for reading.
finally I found it : the  or die is the problem.
returning nothing $AppAccess->OpenCurrentDatabase($strBase) or die "Unable to open Access database : $!"; always failed ... but $AppAccess->OpenCurrentDatabase($strBase); works. Happy to finally learn this.

thanks for all

Replies are listed 'Best First'.
Re^3: Win32::OLe and OpenCurrentDatabase
by kschwab (Vicar) on Dec 23, 2016 at 16:53 UTC

    Yep...the documentation says:

    Return Value: Nothing

    Which is odd, for a function that's opening a database file. Not sure how you detect failures, but it is documented behavior.