Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

subform top requery on textbox update

Status
Not open for further replies.

Hammondo

MIS
Jan 14, 2002
23
NL
I'm trying to get a Subform (that is based on a query) to update (requery) automatically when a new value in a textbox on the main form is updated.

On the update of the textbox, the subform should read the value contained in the textbox using it as a query parameter for the record it is to return...

Can anyone help!?





 
Assuming that you have everything correctly setup initially then you just need to use the following line of code in the After_Update event of the text box.

me.Subform.refresh

replace Subform with the name you gave to your Subform control. (Not neccesarily the same name as the subform itself.)

Hope this helps

Ian
 
Run an "On Exit" event procedure for the text box calling to requery the subform

DoCmd.requery "nameofsubform"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top