in reply to DBD::ODBC, Access DB, calling a VB function

You can Access it via OLE. But you cannot directly call module code to my knowledge. You can open the module via OLE but you need to call the RunCode action which is native to Access. This is a method of running code from a module using a macro... you must use the RunCode action in the macro and specify your code as the one to run. How ever you cannot pass args to it or get a return value I believe. This is tested code that works
#!/perl -w use strict; use Win32::OLE; use Win32::OLE::Const; my $accessConst = Win32::OLE::Const->Load('Microsoft Access 8.0 Object + Library'); my $app = Win32::OLE->new('Access.Application') or die "$!"; $app->OpenCurrentDatabase('C:/test.mdb'); $app->DoCmd->RunMacro('Macro1'); $app->DoCmd->Quit($accessConst->{'acQuitSaveNone'});
This works... I had my code run by my macro simply write to a file on my C:\ drive and it worked fine... just poke around the Object browser some more and see if you can find a way to invoke RunCode however I don' think you can.

Grygonos