filter linked subform using combo box

siamandm
BronzeLounger
Posts: 1227
Joined: 01 May 2016, 09:58

Re: filter linked subform using combo box

Post by siamandm »

thank you, Hans, what i meant is when I type a change the date its not requiring the subform !! how i do requiring after changing the date

i tried these in on chane event of the date from and date to text box :

Code: Select all

Private Sub txtDateFrom_Change()
Call FilterSubForm
End Sub

and

Code: Select all

Private Sub txtDateFrom_Change()
me.subfrm.requery
End Sub

User avatar
HansV
Administrator
Posts: 78488
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: filter linked subform using combo box

Post by HansV »

Use the After Update event of the text box:

Code: Select all

Private Sub txtDateFrom_AfterUpdate()
    Call FilterSubForm
End Sub
Best wishes,
Hans

siamandm
BronzeLounger
Posts: 1227
Joined: 01 May 2016, 09:58

Re: filter linked subform using combo box

Post by siamandm »

Thank you Hans