Regarding Compact & Repair: Without knowing the version of Access, this is trickier. If you have Ac2007 or later, you get to Compact & Repair from the Access Ribbon's "FILE" tab. On older versions, I'm not sure I remember where it is. Maybe under the File menu option. If your application won't open, it is possible to open "naked" Access and select the C&R option and THEN point it to a file to be compacted & repaired.
Firts I think you think access crashed because of my program but my program was working fine. It was just access it self that crashed without warning. Just the standard message from windows that comes with every program that crashes.
No, I DON'T think that. Without more information, I KNOW that I don't know that, but your responses are not helping.
I'll also comment that since about Ac2003, I haven't heard many complains about Access "just crashing" unless your hardware failed or you got virus-smacked.
I think your complaint about "not working any more" would be different if you got a virus or a hardware failure, so by process of elimination, YES your program was NOT working fine - probably because it ran into something unexpected. Not saying I know what got into it. That's why I was asking questions.
Stuff happens, true - but computers tend to be deterministic, so stuff happens for a reason, not the phase of the moon.
You answered WHAT the Macros do but I was asking about how they are launched. You can call them from code or you can put a macro name in a form event slot or you can launch them from the navigation pane by selecting via double-click or other actions from the keyboard.