Tmp := ExtractFilePath(ParamStr(0));
// Reperoire de l'application
Sys_Dir := Copy(Tmp, 1, length(TMP)-1);
FName := Sys_Dir + '\Taxe.MDB';
Tmp := 'Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;';
Tmp := Tmp + 'Data Source=' + FName + ';';
Tmp := Tmp + 'Mode=Share Deny None;Extended Properties="";Jet OLEDB:System database="";';
Tmp := Tmp + 'Jet OLEDB:Registry Path="";Jet OLEDB
atabase Password="";Jet OLEDB:Engine Type=5;';
Tmp := Tmp + 'Jet OLEDB
atabase Locking Mode=1;Jet OLEDB:Global Partial Bulk Ops=2;';
Tmp := Tmp + 'Jet OLEDB:Global Bulk Transactions=1;Jet OLEDB:New Database Password="";';
Tmp := Tmp + 'Jet OLEDB:Create System Database=False;Jet OLEDB:Encrypt Database=False;';
Tmp := Tmp + 'Jet OLEDB
on''t Copy Locale on Compact=False;Jet OLEDB:Compact Without Replica Repair=False;';
Tmp := Tmp + 'Jet OLEDB:SFP=False';
If FileExists(FName) Then
With DB do
Try
Connected := false;
Provider := 'Microsoft.Jet.OLEDB.4.0';
ConnectionString := tmp;
Open;
Except
end;
Partager