procedure TForm1.FormShow(Sender: TObject);<br> var<br> CreateAccess:OleVariant;<br>begin<br> if FileExists('new.mdb') then<br> begin<br> exit;<br> end;<br><br> with Dm.ADOQ1 do<br> CreateAccess:=CreateOleObject('ADOX.Catalog');<br> CreateAccess.Create('Provider=Microsoft.Jet.OLEDB.4.0;Data Source=./new.mdb');<br> // close;<br> Dm.ADOQ1.SQL.Clear;<br> Dm.ADOQ1.SQL.add('create table 表名( 字段1 identity(1,1)primary key,字段2 char(200),字段3 char(200))');<br> Dm.ADOQ1.execsql; <br><br> end;