Opening code window unexpectedly

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Today, 14:49
Joined
Feb 28, 2001
Messages
30,325
I'm in an Ac2003 MDB file, nothing overly special, no declared startup forms (yet), and no chance for code to be running (yet). I.e. no forms are open but minimized, no timers can possibly be running in background.

So... I'm coding along, editing, saving, compiling, etc. Typical developer actions. I reach a stopping point so I close all code windows (with compile and save), close all forms, but leave the DB window open. I then use special facilities to lock the computer. It is a government site, so I pull my "smart card" and that is all it takes.

I excuse myself, take lunch, take a coffee break, take a whatever break. When I come back and re-insert the smart card, the code window is open on the last form I was working. But I had explicitly closed everything except the DB window itself. This has happened more than once.

Another thing that is oddball is that in this case, there is no menu bar or icon bar on the code window. It is just a maximized window with code in it. I couldn't hit a SAVE function if I tried. (OK, there is such a thing as a shortcut key, but you know what I mean.) I close the window and see the normal DB screen. Everything works, nothing seems to be corrupted that I can tell.

This is a development copy of the DB, so no timers, no startup forms active, nothing open. Can anyone point to a reason my code window should open up like this? I haven't been playing around with properties to hide the DB window yet and the copy that is open is on my private workstation. I'm so confused. Does this sound familiar?
 
One thing I'd want to do myself is to take it to another computer and see if same thing happen there, especially on non-governmental-issued computer (I realize this may not be even an option for you, though)... This way we want to rule out whether it's the security and scripts running on your governmental-issued computer having a side-effect or if it's coming from the file itself.

I suppose we also can do it the other way around - take in a file that you know do not show up the code windows after a break/computer goes to sleep/locks up/whatever then see what it does on your computer.
 
You are not alone, like you I have the same experience. When I leave my pc or multi task or when the windows login times out when I next tab onto the Access app I get the same issue you described identically.

So we can assume it is not application/installation specific. it may be something that is happening in the Windows environment that is causing it.
 
I have it happen in Excel if I have the VBA editor open, then close the xls file and also close the vba editor but leave Excel open without any open xls files. I lock my computer, then when I unlock it the VBA window is open even though I closed it and no xls files are open.
 
Thanks, guys. If it is happening on other computers and in Excel, too, it is some weirdness in MS Office. Which somehow is not that much of a surprise...

Looks like a wider-ranging web search is in order. I'll report back later if I find anything.
 

Users who are viewing this thread

Back
Top Bottom