Microsoft Access & Win32::Ole
- From: "BartlebyScrivener" <rpdooling@xxxxxxxxx>
- Date: 28 Oct 2005 16:03:26 -0700
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 -> {'Visible'} = 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.
.
- Follow-Ups:
- Re: Microsoft Access & Win32::Ole
- From: BartlebyScrivener
- Re: Microsoft Access & Win32::Ole
- Prev by Date: Re: LWP::UserAgent POSTing creates 2 packets - I want just 1
- Next by Date: Re: LWP::UserAgent POSTing creates 2 packets - I want just 1
- Previous by thread: LWP::UserAgent POSTing creates 2 packets - I want just 1
- Next by thread: Re: Microsoft Access & Win32::Ole
- Index(es):
Relevant Pages
|
|