Solved

How do I "Refresh" a query?

Posted on 2008-06-18
2
627 Views
Last Modified: 2013-11-28
I have a form that uses two combo boxes to seelct criteria for a query.  Then in a subform I use the query in a combo box to make a third selection.  However, whenever I make my first two selections and then move to the subform, nothing is displayed.  If I then switch to design mode, and then back to view mode, the valid selections are available.  How do I "Force" the query to run the first time I enter the subform?
0
Comment
Question by:StuBabyAight
2 Comments
 
LVL 8

Accepted Solution

by:
Emil_Gray earned 50 total points
ID: 21818370
In the On Enter event for the subform use:

Me.Requery
0
 

Author Comment

by:StuBabyAight
ID: 21818439
Cheers
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

791 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