Originally Posted by
June7
...Is frmMenu actually already closed...
That was going to be my guess, that 'not visible' actually meant closed.
Originally Posted by
pbaldy
...a reference in the load event of a main menu that was looking for a login form...
I've actually seen this problem (a Form_Load event firing when a database was closed) a number of times, here or elsewhere, but have never seen an explanation of why it occurs. It could be something like this, but I agree with June7 that the OP ought to try to find the offending code, if at all possible, rather than simply trapping the error. My guess would be code that, on the closing of one or more Forms, returns the user to the frmMenu Form.
Linq ;0)>
The problem with making anything foolproof...is that fools are so darn ingenious!
All posts/responses based on Access 2003/2007