Query running automatically

G

Guest

I have a drop down menu of names, which feeds into a query to show ID's for
that name, on the same report form, as you change the name drop down to
select a name (john smith) the query runs and returns all ID's for Jon Smith
and shows these in another drop down, hwoever, if you then change the drop
down name field the query doesn't run again and instead show only John
Smith's ID's not the new persons, if I close down the form and select a
different name it works once then again it sticks, what am I doing wrong
Matt
 
A

Allen Browne

Presumably you want to force the requery when an unbound text box is
updated?

If so, set the AfterUpdate property of the text box to:
[Event Procedure]

Click the Build button (...) beside the property.
Access opens the code window.

Between the "Private Sub..." and "End Sub" lines, enter:
Me.Requery
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Query for all 1
Macro Results, How to filter? 1
Combo Box Question 1
Access 2007 - Table A lookup values based on Table B 1
Limit to Records in a drop down box? 2
Append Query Problem 1
Help with Query 2
query 1

Top