Google
Showing posts with label Create. Show all posts
Showing posts with label Create. Show all posts

Monday, March 19, 2007

create an Access Database

uses
ComObj;

procedure TForm1.Button1Click(Sender: TObject);
var
AccessApp: Variant;
begin
AccessApp := CreateOleObject('Access.Application');
AccessApp.NewCurrentDatabase('c:\111.mdb');
AccessApp := Unassigned;
end;