I need to compact a database programmatically, i have checked all the faqs, none help.
I need the new compacted file to overwrite the no compacted file when i use the next instruction:
DBEngine.CompactDatabase "C:\DB\mydb.mdb", "C:\DB\mydb.mdb"
i get this error:
"You attempted to open a database that is already opened exclusively by user 'Admin' on machine 'FL50144'. Try again when the database is available.
and i heard that is because when access open a database it automatically creates an ldb security file, but this file can not be deleted.
Can anyone advice?
Thanks
I need the new compacted file to overwrite the no compacted file when i use the next instruction:
DBEngine.CompactDatabase "C:\DB\mydb.mdb", "C:\DB\mydb.mdb"
i get this error:
"You attempted to open a database that is already opened exclusively by user 'Admin' on machine 'FL50144'. Try again when the database is available.
and i heard that is because when access open a database it automatically creates an ldb security file, but this file can not be deleted.
Can anyone advice?
Thanks