hi!
i have a form, with some buttons : a,b,c,d,e,f,....,z
and i have a sub form with people data.
i want the following:
when i press a button, i will refresh the subform with the people who their name begin by the pressed letter.
+ refresh instantly.
i try :
Private Sub Command22_Click()
Dim stLinkCriteria As String
stLinkCriteria = "People.Name LIKE 'A%'"
Me.PEOPLE.Filter = stLinkCriteria
Refresh
End Sub
but this is not working "Me.PEOPLE.Filter = stLinkCriteria" not legal ...
how can i do that???
i have a form, with some buttons : a,b,c,d,e,f,....,z
and i have a sub form with people data.
i want the following:
when i press a button, i will refresh the subform with the people who their name begin by the pressed letter.
+ refresh instantly.
i try :
Private Sub Command22_Click()
Dim stLinkCriteria As String
stLinkCriteria = "People.Name LIKE 'A%'"
Me.PEOPLE.Filter = stLinkCriteria
Refresh
End Sub
but this is not working "Me.PEOPLE.Filter = stLinkCriteria" not legal ...
how can i do that???
