?
Solved

Requery after TextBox update

Posted on 2013-12-11
2
Medium Priority
?
2,939 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 2000 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

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

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

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
Code that checks the QuickBooks schema table for non-updateable fields and then disables those controls on a form so users don't try to update them.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Suggested Courses

800 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