A
Anthony England
Hello Newsgroup
I wonder if someone has a spare 5 minutes to test something for me. I
posted to comp.databases.ms-access but have yet to receive any response.
The question is: if I want to compact a secured mdb file from another mdb,
do I need an Admins login? I think I have proved that you do not - but I
may have overlooked something.
So assuming you have a split, secured database handy with a read-only user,
say Bob, who does not have permission to open the database exclusively:
Login to the fe as Bob
Make sure you have no bound forms open so the be is closed
Press Ctrl-G for the immediate window and type:
DBEngine.CompactDatabase PATH_1, PATH_2
where PATH_1 is the existing be path (e.g. C:\BackEnd.mdb)
and PATH_2 is the path for the file to be created (e.g. C:\Compacted.mdb)
Do you agree that Bob does not need permission to open the database
exclusively, in order that he can run:
DBEngine.CompactDatabase "C:\BackEnd.mdb", "C:\Compacted.mdb"
Is there any documentation which explains this?
I wonder if someone has a spare 5 minutes to test something for me. I
posted to comp.databases.ms-access but have yet to receive any response.
The question is: if I want to compact a secured mdb file from another mdb,
do I need an Admins login? I think I have proved that you do not - but I
may have overlooked something.
So assuming you have a split, secured database handy with a read-only user,
say Bob, who does not have permission to open the database exclusively:
Login to the fe as Bob
Make sure you have no bound forms open so the be is closed
Press Ctrl-G for the immediate window and type:
DBEngine.CompactDatabase PATH_1, PATH_2
where PATH_1 is the existing be path (e.g. C:\BackEnd.mdb)
and PATH_2 is the path for the file to be created (e.g. C:\Compacted.mdb)
Do you agree that Bob does not need permission to open the database
exclusively, in order that he can run:
DBEngine.CompactDatabase "C:\BackEnd.mdb", "C:\Compacted.mdb"
Is there any documentation which explains this?