Solved

How do I "Refresh" a query?

Posted on 2008-06-18
2
624 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
Comment Utility
In the On Enter event for the subform use:

Me.Requery
0
 

Author Comment

by:StuBabyAight
Comment Utility
Cheers
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)

Join & Write a Comment

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…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
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 …
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.

743 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

20 Experts available now in Live!

Get 1:1 Help Now