Hi all!
I'm creating a database for employee time records (which I've mentioned in other posts). I've gotten help here so far but now I have a question I'm sure there's an easy answer to - I just can't seem to connect it in my head!
I want people to be able to search by last name for records, therefore avoiding "no results" based on people spelling first names incorrectly, using nick names, etc.
However, we have a husband and wife who both work here, plus two non-related people who have the same surname.
What I would like to have happen is if someone searches "Doe" then the records for John Doe come up because he's the only Doe in the records. I know how to do that part. However, if someone searches "Smith" it would then ask for a first name, since there's two of those in the Employee table.
I know there's an IIf function in there somewhere, I just don't know how to phrase it! Can anyone help me?![]()