data not refreshed until close the form

  • Thread starter Thread starter Song Su
  • Start date Start date
S

Song Su

I have a SearchForm. One button to open AddForm. After add a record and
close AddForm, I cannot use SearchForm to locate the newly added record
until I close and re-open SearchForm.

Same is true when Delete.

On the SearchForm, I have a Delete button to delete a record. Combo Box
search box on SearchForm still can see #Deleted until I close SearchForm and
re-open to see #Delete is gone.

Is there a way to refresh data without close and re-open SearchForm?

Thanks.
 
You need to Requery the RecordSet to remove the #Deleted messages and pick up
any new records.
 

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

Back
Top