Somewhere in the links June7 gave you I suspect that there will be a caveat, it being that you can only do a C & R, on a multi-user database, if no other users are working on it.
Additionally, before doing a C & R you should always make a backup copy of the file, as compacting, itself, is a recognized cause of corruption and data loss!
And I simply have to ask...why do you feel the need to give end users the ability to do this?
Linq ;0)>
The problem with making anything foolproof...is that fools are so darn ingenious!
All posts/responses based on Access 2003/2007