How to requery from a form

  • Thread starter Thread starter Simon
  • Start date Start date
S

Simon

I have a form that has a text box on which i would like to type some
text into then i would like it to do a requery every time i change the
text. but it not a requery on the
query the form is based on

it needs to requery on a different query


thnak
 
Using the After update event of text box you can write the code:
1. If the query is the record source of the main form
Me.Requery
2. If the query is the RecordSource of the SubForm
Me.[SubFromControlName].Requery

At any case the text box should be UnBound, if it will be bound to a field
in the table, it will change the value in the table and wont refresh the form
 
Simon said:
I have a form that has a text box on which i would like to type some
text into then i would like it to do a requery every time i change the
text. but it not a requery on the
query the form is based on

it needs to requery on a different query


thnak
 

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

Subform Requery Criteria 1
VB code to Requery 1
Requery Form 1
Requery subform 2
requery 1
Requery an open form 2
Remain on current record after requery 1
Requery unbound textbox 1

Back
Top