5 seconds in google tells me that you can call Access with the "/compact" command line switch. Also, there's a KB article at support.microsoft.com that give further details.
Does anyone have any simple ways of performing these functions within Visual Basic? I have found some snippets of code but they seem very complicated. I'm focused here on preventing or at least ...