Hi perl monks,
I badly need your help with this. I want to get the custom properties of ms Access files. I am able to open .mdb files but not .accdb files. Can any one help me with this.
my $filename = "database.accdb"; # $ARGV[0];
print $filename."\n";
$oAccess = Win32::OLE->new('Access.Application') or die qq{Couldn't st
+art new Access instance!};
# Open Access File
$oDatabase = $oAccess->DBEngine->Workspaces(0)->OpenDatabase($filename
+);
When I tryto open .accdb files it says
OLE exception from "DAO.Workspace":
Could not find file 'database.accdb'.
Win32::OLE(0.1709) error 0x800a0bd0
in METHOD/PROPERTYGET "OpenDatabase" at accessTest.pl
I also tried this code
my $filename = "database.accdb"; # $ARGV[0];
print $filename."\n";
$oAccess = Win32::OLE->new('Access.Application') or die qq{Couldn't st
+art new Access instance!};
# Open Access File
$oDatabase = $oAccess->OpenCurrentDatabase($filename);
But with this also it says file not found.
Do I need to install any drivers for ms access or any thing like that.