Sorry for the late reply. Here is how I do a search for customers names with the first few letters (it doesn't matter if the user types 1, 2, 3, 4, etc letters):
Create the query that will go behind the form or report that will display the data when your users look up a last name. I use a continuous form that displays a list of customers with first and last name, and other data, that has a button that allows the user to open a customer data form from the continuous form.)
Anyway, the button that calls the form or report just calls it without any parameters. It could also just call the query itself, but that is not a good way to display data since you can't control data entry at that point.
The query behind the form or report should have this criteria in the LastName column:
'----------
Like [Type the first few letters of the last name of the customer whose record you want to edit:] & "*"
'----------
This will prompt the user to enter "the first few letters" of the users last name. As I said, it doesn't matter how many letters. Of course you also reword the prompt [] how you want it to appear. =)
When the user clicks okay, they will be given the list.
HTH
mmcdonal
|