|
Posted by BartlebyScrivener on October 28, 2005, 4:03 pm
Please log in for more thread options
I have a database called Quotations2005 which I can open with the
following. I would also like to run some event code contained in the
switchboard form. The code is contained in Private Sub
Command23_Click()
Is this even possible? Does one use the Run Macro Command as in Word?
use strict;
use warnings;
use Win32::OLE;
my $access = CreateObject Win32::OLE 'Access.Application' || die
"Cannot create Access object\n$!\n";
$access -> = 1;
$access -> OpenCurrentDatabase('d:\Access
Databases\Quotations2005.mdb');
# Here's the scary part
$access -> DoCmd -> RunMacro(Form_Switchboard.Command23_Click);
$access->Quit();
Thank you for any help.
|