...well for me anyway. I'm a beginner using Access 2007 and have a problem with a filter. I've made filters on other forms without issue but the difference is that on this form the information displayed on the fields to filter (and the text the user will input) are from another table - they are ID numbers on this table. This is an example of the code I've tried but the obvious fault is that it will only work if the whole name is written perfectly. I need for the user to be able to use *s etc to filter partial names:
If Combo40 = "Business Name" Then
Me.Filter = "BusNum Like """ & DLookup("[BusNum]", "Suppliers", "[BusName] = " & Me.Text42) & """"
Me.FilterOn = True
Me.Requery
End If
I'm stumped for ways around this. Was wondering if I could actually filter the other table from the form?
Thanks a lot for any suggestions.
Chin chin
If Combo40 = "Business Name" Then
Me.Filter = "BusNum Like """ & DLookup("[BusNum]", "Suppliers", "[BusName] = " & Me.Text42) & """"
Me.FilterOn = True
Me.Requery
End If
I'm stumped for ways around this. Was wondering if I could actually filter the other table from the form?
Thanks a lot for any suggestions.
Chin chin