Maintaining a subform based on a search Query

mir_99

Registered User.
Local time
Today, 15:48
Joined
May 16, 2000
Messages
10
i am having problem with a subform that is based on a select query , but the select query is getting the criteria from a textbox located on the main form.
i want the subform to be displayed after a value is entered in the textbox control and a button is pressed.
thanks in advance for help!
with regards
imran a mir
 
Hi Imram

This might work. In the AfterUpdate event of your textbox requery your subform. You can do it like this

[MainForm]![SubForm].Requery

This forces the the underlying query to be re-run.

Hope this helps

kensan
 
Thanks Kensan
it did work well!
 

Users who are viewing this thread

Back
Top Bottom