Howdy Folks,

I'm struggling to access DAO from Perl, using Jan Dubois' Win32::OLE.  I
have successful developed scripts that use OLE to talk to MS Word, MS Excel
and Lotus Notes, so I'ld like to think I'm not entirely clueless, but this
one is kickin' my behind.

I have the following test script:

#!C:\Perl\bin\perl.exe -w

use strict;
use Win32::OLE;

my $engine = Win32::OLE->GetActiveObject('DAO.DBEngine.36') 
    or Win32::OLE->new('DAO.DBEngine.36');
if (defined $engine)
  {
    print "Connection established\n";
  }
else
  {
    die "error connecting to DBEngine: ", Win32::OLE->LastError;
  }


Based on what I've read in the archives, this should work, but the output I
get is:

        error connecting to DBEngine: 0 at temp.pl line 14.


Anybody care to shed some light on this?


Thanx,
Ian
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

Reply via email to