Solved

Simple Query Wizard causes ON GOT FOCUS error message

Posted on 2003-12-02
6
312 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
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

867 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

12 Experts available now in Live!

Get 1:1 Help Now