Re: Creating a MS Access database
From: Denis (Denis_at_nospam.com)
Date: 05/26/04
- Next message: Viatcheslav V. Vassiliev: "Re: Creating a MS Access database"
- Previous message: Danny Kellett: "Re: Simple TADOQuery is not live"
- In reply to: Brian Bushay TeamB: "Re: Creating a MS Access database"
- Next in thread: Viatcheslav V. Vassiliev: "Re: Creating a MS Access database"
- Reply: Viatcheslav V. Vassiliev: "Re: Creating a MS Access database"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 26 May 2004 09:19:27 -0400
Can you tell me where I can find information about ADOX? No mention in the
help file. As for the code you sent me, it does not recognize _Catalog.
(probably because of the missing library).
Denis
> If you import the ADOX type library you can use code like this to create
an
> access database.
>
> var
> Catalog: _Catalog;
> CS,dbName: string;
> begin
> dbName := 'myNewAccessDB6.mdb';
> Catalog := CreateCOMObject(StringToGUID('ADOX.Catalog')) as _Catalog;
> CS := 'Provider=Microsoft.Jet.OLEDB.4.0;Data Source=' + dbName
> // Engine type = 5 creates 2000 database
> +';Jet OLEDB:Engine Type=5';
> if FileExists(dbName) then
> DeleteFile(dbName);
> Catalog.Create(CS);
> Catalog := nil;
- Next message: Viatcheslav V. Vassiliev: "Re: Creating a MS Access database"
- Previous message: Danny Kellett: "Re: Simple TADOQuery is not live"
- In reply to: Brian Bushay TeamB: "Re: Creating a MS Access database"
- Next in thread: Viatcheslav V. Vassiliev: "Re: Creating a MS Access database"
- Reply: Viatcheslav V. Vassiliev: "Re: Creating a MS Access database"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|