Q101321: ADT: Cannot Select Any Object Except MS Access Menu
Article: Q101321
Product(s): Microsoft Access Distribution Kit
Version(s): WINDOWS:1.0,1.1,2.0,7.0
Operating System(s):
Keyword(s): kbui
Last Modified: 08-JUL-2002
-------------------------------------------------------------------------------
The information in this article applies to:
- Microsoft Access versions 1.0, 1.1, 2.0
- Microsoft Access for Windows 95, version 7.0
-------------------------------------------------------------------------------
Moderate: Requires basic macro, coding, and interoperability skills.
SYMPTOMS
========
One of the following two conditions occurs:
- You can select only the Microsoft Access menu. All other objects appear as
they normally do, but you cannot select them.
-or-
- Your application has stopped on a breakpoint that you set in a function, but
you cannot use the indicator to set the focus to the Module window.
CAUSE
=====
Your code has executed an Echo action and turned the echo off. You need to turn
the echo back on by setting Echo On to Yes (the default).
RESOLUTION
==========
To correct this problem, do one of the following:
- Correct the logic of your program.
-or-
- Add a key assignment in your Key Assignment macro.
NOTE: By default, the Key Assignment macro is set to the AutoKeys macro.
MORE INFORMATION
================
Steps to Reproduce Behavior
---------------------------
1. Create the following function:
Function FunctionThatAppearsHung()
Dim i as integer
DoCmd.Echo False
'In version 1.x and 2.0, the above line should be DoCmd Echo False
'with no period (.).
Debug.Print i
DoCmd.Echo True
' In version 1.x and 2.0, the above should be DoCmd Echo True
' with no period (.).
End Function
2. Using the F9 key, set a breakpoint on the following line:
Debug.Print i
3. Type the following in the Debug window (or the Immediate Window in version
1.x and 2.0), and then press ENTER:
?FunctionThatAppearsHung()
4. To give control back to Microsoft Access, either quit Microsoft Access or
define the AutoKeys macro as follows, and then press F12:
MacroName Action Arguments
--------------------------------
{F12} Echo Yes
REFERENCES
==========
For more information about this topic, search for "echo," and then "Echo Action"
using the Microsoft Access for Windows 95 Help Index.
Additional query words: macro marco autokeys nxml
======================================================================
Keywords : kbui
Technology : kbAccessSearch kbAccess110 kbAccess200 kbAccess100 kbAccess95Search kbZNotKeyword3 kbAccess700
Version : WINDOWS:1.0,1.1,2.0,7.0
Hardware : x86
Issue type : kbprb
=============================================================================
THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.
Copyright Microsoft Corporation 1986-2002.