Solved

Simple Query Wizard causes ON GOT FOCUS error message

Posted on 2003-12-02
6
317 Views
Last Modified: 2008-02-01
When I create a new database, and use the simple query wizard a few times, an error begins to occur.  Here are the details.

As soon as I attempt to select the table or query from the pull down box in the simple query wizard, I get this error message:

"The expression On Got Focus you entered as the event property setting produced the following error: The text you entered isn't an item in the list."

At this point the mouse cursor turns to a rotating hourglass and will continue to be an hourglass until I close the database and re-open it.
However, if I don't close the database, the application works just fine....except for the darn rotating hourglass is a bit difficult to work with.

If I do close the database, I have the same problem again the next time I try to use the wizard.

Any help?
0
Comment
Question by:grillmann
6 Comments
 
LVL 39

Expert Comment

by:stevbe
ID: 9859567
have you Repaired/Compact the database? what version of access?

steve
0
 

Expert Comment

by:tdkeller
ID: 9860243
does the database have any forms in it?  You may want to check the VBA Editor to see if any code is running when you open the database.  One of your forms probably has a procedure connected to its OnGotFocus event.

If you find one, try commenting it out in the code by putting a single quote ( ' ) in front of the line.  Save the form and compact and repair the database and reopen it.  Then try the query wizard.

Tina
0
 
LVL 1

Expert Comment

by:tcafini
ID: 9861527
And in yoou direct windows write:

  docmd.Hourglass False

TC
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

Author Comment

by:grillmann
ID: 9874807
Access version 2002.

Repaired, compacted....no different.

No forms in the database.  Just tables and queries at the moment.

This is not a new problem.  It happens with all my databases.
0
 
LVL 39

Accepted Solution

by:
stevbe earned 500 total points
ID: 9875839
At this point I would suggest that you try re-installing Access.

Steve
0
 
LVL 39

Expert Comment

by:stevbe
ID: 10076066
If re-installing Access fixed the problem then why the C grade, if it did not and you found another answer hat was it and you/or you can post a request in Community support to have the question closed without points being awarded.

Steve
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question