S
Sam Hung
Hi All,
Can I filter the data from the database and show it in
the form as two filter items are selected?
My Source Code is as follows:
Private Sub text1_KeyDown(KeyCode As Integer, Shift As
Integer)
If KeyCode = 13 Then
Me.Filter = "table1.text1='" & Trim(text1.Text) & "'
and cust_fg_mat_bill.text2='" & Trim(text2.Text) & "'"
Me.FilterOn = True
End If
End Sub
'the above filter command doesn't work, it shows "Run-
Error '2185'"
"You can't reference a property or method for a control
unless the control has the focus."
Sam.
Can I filter the data from the database and show it in
the form as two filter items are selected?
My Source Code is as follows:
Private Sub text1_KeyDown(KeyCode As Integer, Shift As
Integer)
If KeyCode = 13 Then
Me.Filter = "table1.text1='" & Trim(text1.Text) & "'
and cust_fg_mat_bill.text2='" & Trim(text2.Text) & "'"
Me.FilterOn = True
End If
End Sub
'the above filter command doesn't work, it shows "Run-
Error '2185'"
"You can't reference a property or method for a control
unless the control has the focus."
Sam.