in reply to Win32::OLe and OpenCurrentDatabase

This likely means that $strBase does not contain the (full name to) the database, or maybe that database is locked (do you have Access open?).

Maybe consider not using Tkx and hardcoding the filename? Also consider creating an actual short program we can try out locally, as SSCCE describes.

Replies are listed 'Best First'.
Re^2: Win32::OLe and OpenCurrentDatabase
by x-lours (Sexton) on Dec 23, 2016 at 14:52 UTC
    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

      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.