Solved

Requery after TextBox update

Posted on 2013-12-11
2
2,178 Views
Last Modified: 2013-12-11
I have created a form in Access 2010.  I have a Text Box that uses a Date Picker, with a Short Date format, to select a date to be used as criteria within a query attached to a ListBox to select records from a table for a Date/Time (Short Date Format) field equal to the TextBox value.

My question is how to get the form to refresh the ListBox query after the Text Box has been updated.

Do I use the OnUpdate property of the text Box with a VBA code and then focus on the List Box?

Please recommend the best process and syntax for this.

thanks

glen
0
Comment
Question by:GPSPOW
2 Comments
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 500 total points
ID: 39713122
use the afterupdate event of the date textbox

private sub textboxName_afterupdate()

me.listboxName.requery

end sub
0
 

Author Closing Comment

by:GPSPOW
ID: 39713127
Works perfectly

Thank you

Glen
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
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…

744 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