D
DeVille
I have this filter button which filters my records by
customer name, it works well but I have to type the whole
customer name, I'm trying to change my code so that it
works if the user types only the first few letters of the
customer's name(I think its called a wildcard) eg Pete
instead of Peter
Here is the 'Me' part of the code I have 'on click' in
the button procedure at the moment which works if I type
the whole name
Me.Filter = "[CustomerName] like [Enter Customer Name]"
Me.FilterOn = True
This is something like what I think maybe the 'Me' part
of the code should look like
Me.Filter = ((([CustomerName.*]) Like [Enter Customer
Name] & "*"))
Me.FilterOn = True
If anyone can explain how to do this thanks in advance
customer name, it works well but I have to type the whole
customer name, I'm trying to change my code so that it
works if the user types only the first few letters of the
customer's name(I think its called a wildcard) eg Pete
instead of Peter
Here is the 'Me' part of the code I have 'on click' in
the button procedure at the moment which works if I type
the whole name
Me.Filter = "[CustomerName] like [Enter Customer Name]"
Me.FilterOn = True
This is something like what I think maybe the 'Me' part
of the code should look like
Me.Filter = ((([CustomerName.*]) Like [Enter Customer
Name] & "*"))
Me.FilterOn = True
If anyone can explain how to do this thanks in advance