M
mr.zy
Unregistered / Unconfirmed
GUEST, unregistred user!
Win98 + D6 + Access2000
请教哪里出错了?
代码如下:
引用单元:
uses ComObj;
压缩Access数据库:
var
dao: OLEVariant;
begin
dao := CreateOleObject('DAO.DBEngine.35');
dao.CompactDatabase('d:/yourDatabaseName.mdb', 'd:/yourNewCompactedDatabaseName.mdb');
end;
修复Access数据库:
var
dao: OLEVariant;
begin
dao := CreateOleObject('DAO.DBEngine.35');
dao.RepairDatabase('d:/yourDatabaseName.mdb');
end;
请教哪里出错了?
代码如下:
引用单元:
uses ComObj;
压缩Access数据库:
var
dao: OLEVariant;
begin
dao := CreateOleObject('DAO.DBEngine.35');
dao.CompactDatabase('d:/yourDatabaseName.mdb', 'd:/yourNewCompactedDatabaseName.mdb');
end;
修复Access数据库:
var
dao: OLEVariant;
begin
dao := CreateOleObject('DAO.DBEngine.35');
dao.RepairDatabase('d:/yourDatabaseName.mdb');
end;