G
Guest
I'm using a text box (LN) in the main form (Frm_allclients) to filter a
subform (frm_allclientssub). The filter is applied by using the text from
the textbox LN in the query with wildcard characters (last name LIKE
forms!frm_allclients!LN&"*").
Can someone tell me the code for getting this to requery as each character
is added. In the LN textbox I've used the events properties (I thought
KeyDown would be my best bet) and tried this (doesn't work).
Private Sub LN_KeyDown(KeyCode As Integer, Shift As Integer)
DoCmd.Requery "Frm_AllClientsSub"
DoCmd.RepaintObject acForm, "Frm_AllClients"
Forms!Frm_AllClients!LN.SetFocus
End Sub
subform (frm_allclientssub). The filter is applied by using the text from
the textbox LN in the query with wildcard characters (last name LIKE
forms!frm_allclients!LN&"*").
Can someone tell me the code for getting this to requery as each character
is added. In the LN textbox I've used the events properties (I thought
KeyDown would be my best bet) and tried this (doesn't work).
Private Sub LN_KeyDown(KeyCode As Integer, Shift As Integer)
DoCmd.Requery "Frm_AllClientsSub"
DoCmd.RepaintObject acForm, "Frm_AllClients"
Forms!Frm_AllClients!LN.SetFocus
End Sub