It is possible that a form could be open but hidden. Try entering the
following in the Immediate Window (if you don't see the Immediate Window,
you can get to it with the keyboard shortcut Ctrl+G).
? Forms.Count
Forms is a collection of open forms, so if no forms are open, this should
print 0 to the Immediate Window.
It is also possible, of course, that I could be wrong and it may not be a
Timer event causing the problem at all, though from the description that is
what it sounds like.
To by-pass startup code when opening the MDB, hold down a Shift key when
opening it. There are two places that start-up behaviour may be defined. If
there is a macro named AutoExec, Access will execute it automatically when
the MDB is opened. Alternatively a form (or, more rarely, a Data Access
Page) can be defined as the start-up object, and any code in, for example,
the Open or Load event procedures of that form will be executed when the MDB
is opened. To see if a start-up object has been defined, from the Tools menu
select Startup. There are several other options in that dialog box that you
might want to change during development work too, for example you might want
'Allow Full Menus' enabled during development.
It is possible to disable the Shift-bypass key option, so if the AutoExec
macro or startup form code still fires even when you hold down the Shift key
when opening the MDB, it is because the original developer disabled that
option.
--
Brendan Reynolds
Access MVP
"Colander" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thanks!
>
> I can't find any open forms, so I clicked the reset button (Is that
> stopping all timers?) and the problem still remains...
>
> Albeit that when I click on the mbd file all kind of automatic stuff
> happens (like logging in to an external database and setting menu
> options), is the reset button sufficient to kill all this?
>
> (Sorry for my not knowing, I'm a C++ programmer, and the company I work
> for still thinks that if you can programme one thing you can programme
> all :-( )
>
|