Solved

Simple Query Wizard causes ON GOT FOCUS error message

Posted on 2003-12-02
6
307 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
Comment Utility
have you Repaired/Compact the database? what version of access?

steve
0
 

Expert Comment

by:tdkeller
Comment Utility
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
Comment Utility
And in yoou direct windows write:

  docmd.Hourglass False

TC
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 

Author Comment

by:grillmann
Comment Utility
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
Comment Utility
At this point I would suggest that you try re-installing Access.

Steve
0
 
LVL 39

Expert Comment

by:stevbe
Comment Utility
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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

771 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now