DeanWilliams
Programmer
I am creating a database where the customer can be either a company or an individual and I was wondering what the best way to approach this was. I would like to search by last names in the case of indivduals and by the first word in the case of a company. I am therefore not sure whether to have one or 2 fields (FirstName;LastName) or 1 field (CustomerName).
My original thought was to use 2 fields, & in the case of a company have LastName empty, but I can see this causing problems when searching by last names.
...Actually I have just had a thought: I could have a Yes/No field that would indicate whether the customer was a company or individual and the search could be structured accordingly using union queries or some other technique.
I am not sure that this is the best way, and if anyone has had to deal with this situation or knows a better method could you please let me know.
Thanks in advance.
Dean.
My original thought was to use 2 fields, & in the case of a company have LastName empty, but I can see this causing problems when searching by last names.
...Actually I have just had a thought: I could have a Yes/No field that would indicate whether the customer was a company or individual and the search could be structured accordingly using union queries or some other technique.
I am not sure that this is the best way, and if anyone has had to deal with this situation or knows a better method could you please let me know.
Thanks in advance.
Dean.