question

BerthildeuRainerKornisch-0172 avatar image
0 Votes"
BerthildeuRainerKornisch-0172 asked

ACCESS close option COMPACT not working when close by C#

My ACCESS.ACCDB is compacted when I work with MS-ACCESS. But when I close the ACCDB via C# the DataBase is not compacted ?!

public void DataBaseDisconnect()
{
if (_OleDbConnection != null)
{
_OleDbConnection.Dispose();
if (_Command != null)
{
_Command.Dispose();
}
}
``}

office-access-dev
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers