My database contains a list of people. Each record has a field for first_name, last_name, and full_name.
I want my search form to display full_name, but sort the search drop down box by last name, then first name. I have tried changing the drop down box sort to value, and choosing the last_name for value and full_name for display, but then I have to change the comparison type to "CONTAINS". The problem with that is it returns records for more than one person if they have a common last name.
What's the best way to sort the search drop down box by last name but still search the database by full name?
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
tbarmann
Hi,
My database contains a list of people. Each record has a field for first_name, last_name, and full_name.
I want my search form to display full_name, but sort the search drop down box by last name, then first name. I have tried changing the drop down box sort to value, and choosing the last_name for value and full_name for display, but then I have to change the comparison type to "CONTAINS". The problem with that is it returns records for more than one person if they have a common last name.
What's the best way to sort the search drop down box by last name but still search the database by full name?
Thanks,
Tim
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.