M
Mike Mertes
Greetings again, all.
Please excuse me for asking questions that have doubtless been asked and
answered here thousands of times previous! If I weren't in a jam for time
I'd do my own research
Anyway, two quick and easy questions follow:
1. What is the preferred method for hiding a UserForm programmatically?
I tried "Me.Visible = False," which does work, but after the Form_Open event
is finished executing my user form reappears!
Maybe the solution is
unrelated?
2. Is there any way to Compact and Repair programmatically?
When I call "RunCommand acCmdCompactDatabase" from a Form_Close event the
compiler gives me an error explaining that, "You can't compact the open
database while running a macro or Visual Basic code."
That's it.
TIA!
Please excuse me for asking questions that have doubtless been asked and
answered here thousands of times previous! If I weren't in a jam for time
I'd do my own research

1. What is the preferred method for hiding a UserForm programmatically?
I tried "Me.Visible = False," which does work, but after the Form_Open event
is finished executing my user form reappears!

unrelated?
2. Is there any way to Compact and Repair programmatically?
When I call "RunCommand acCmdCompactDatabase" from a Form_Close event the
compiler gives me an error explaining that, "You can't compact the open
database while running a macro or Visual Basic code."
That's it.
TIA!