Hi All
I was wondering if I could use docmd.runcommand to compact the current mdb file. I tried the code below but I get a prompt for which database and I don't want that to appear. I just want the current one. I can't seem to pass any parameters.
Does anyone know how to get this going or has a routine they could share that compacts the current mdb file.
Thanks,
Rewdee
I was wondering if I could use docmd.runcommand to compact the current mdb file. I tried the code below but I get a prompt for which database and I don't want that to appear. I just want the current one. I can't seem to pass any parameters.
Code:
DoCmd.RunCommand acCmdCompactDatabase
Does anyone know how to get this going or has a routine they could share that compacts the current mdb file.
Thanks,
Rewdee