Clear Subform

puthenveetil

Registered User.
Local time
Today, 14:57
Joined
Aug 9, 2004
Messages
94
Hi all,

I had a form which had a subform in it..The form is for searching..Is there any way to clear the results in the subform from a command button in mainform.Now I had to close the form and open it again if I want to search again....


Thanks in advance


Thanks
 
You should be able to refresh the subform whenever you change the search criteria. Using '.Requery' on the AfterUpdate event of your criteria field should work.
 
reclusivemonkey said:
You should be able to refresh the subform whenever you change the search criteria. Using '.Requery' on the AfterUpdate event of your criteria field should work.

I Understand, but whatif the query you use on the specific field already has a query which does not return the default value?
 

Users who are viewing this thread

Back
Top Bottom