Clear Immediate window

bulrush

Registered User.
Local time
Today, 17:08
Joined
Sep 1, 2009
Messages
209
Access 2003 on Win XP.

My Immediate window is full of stuff I did in the past and it does not clear when I close the MDB file or when I close Access. How do I clear the Immediate window?

Thanks.
 
Select everything in the immediate window and press the delete key.

However, the content of the immediate window should not be holding over sessions. This causes me to believe that you have troubleshooting code somewhere in your start-up code.
 
And an easier method is to use the free MZ Tools and they have a clear button (looks like an eraser) on the toolbar and you just click that and it clears the immediate window.

And as George said - if you have stuff in your Immediate window when you start up then you might have something in an event that is happening on startup.
 
Hi -

Give this a try:

Code:
Public Sub MeGo()
'purpose:   Erase contents of debug (immediate) window
'coded by:  raskew
'inputs:    from debug window:  mego <enter>

Dim strErase As String

   strErase = String(256, Chr(13) + Chr(10))
   Debug.Print strErase

End Sub

HTH - Bob
 
In my Autoexec macro, I maximize the current window, then open my main menu form. Where else could code be running during startup?

Also, the stuff that stays in the Immediate window is stuff I had entered, like printing a variable. This is not stuff output by Access, Access code, or an Access macro.
 
So are you sure you're closing the ENTIRE Access Application? Just closing the database will not clear the Immediate Window. You have to close the entire Access Application.
 
Yes, I close the entire Access Application, not just the MDB file, and often the Immediate window does not clear. It cleared yesterday though, when I closed Access. I will often come to work the next day (after closing all my apps but leaving the PC on) and start up my MDB I was working on, and the stuff in the Immediate window is often still there.

Thanks. Selecting all text, then hitting DELETE works. It's good enough for now.
 
Yes, I close the entire Access Application, not just the MDB file, and often the Immediate window does not clear. It cleared yesterday though, when I closed Access. I will often come to work the next day (after closing all my apps but leaving the PC on) and start up my MDB I was working on, and the stuff in the Immediate window is often still there.

Thanks. Selecting all text, then hitting DELETE works. It's good enough for now.

Like I said, if you use the MZ tools you just click a button and it's cleared; one step instead of two. But your choice.
 

Users who are viewing this thread

Back
Top Bottom