AccessDB
Posted: Wed 19 Oct 2011 15:28
How can I create new AccessDB and table with UniDac components.
I have D2010.
Thank you.
I have D2010.
Thank you.
Discussion forums for open issues and questions concerning database tools, data access components and developer tools from Devart
https://forums.devart.com/
Code: Select all
uses comobj,sysutils;
............
function CreateAccessDatabase(FileName : String) : String;
var cat : OLEVariant;
begin
result := '';
try
cat := CreateOleObject('ADOX.Catalog');
cat.create ('Provider=Microsoft.Jet.OLEDB.4.0;Data Source='+Filename+';');
cat := NULL;
except
on e : Exception do result := e.message;
end;
end;