Ricky,

This will create a empty file.

Cheers,

James

use Win32::OLE;

# 1 = Jet 1.0, 2 = Jet 1.1; 3 = Jet 2.0, 4 = Jet 3x, 5 = Jet 4x
$FileFormat = 5;
# Jet v4 is used by MS Access 2000

$FileName = "C:\\Test.mdb";

$objCat = Win32::OLE->CreateObject("ADOX.Catalog");
$objCat->Create("Provider=Microsoft.Jet.OLEDB.4.0;Jet OLEDB:Engine
Type=".$FileFormat.";Data Source=".$FileName);

----- Original Message -----
From: "Morse, Richard E." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 28, 2002 7:42 AM
Subject: MSAccess file format question...


> Hi!  For a particular application (actually, a CGI) I am writing, I want
to
> be able to create a .mdb (access 2000 version) file.  However, if
possible,
> I want to avoid actually opening access.  Is there some reference that
would
> tell me what the Access2000 file format is?  Or, better yet, is there a
> module somewhere that will do this?
>
> Thanks,
> Ricky
>

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to