L
loo
I have created a contact database for a user. They wanted to be able to
give descriptions on specialty to each contact via the use of drop down
boxes which will be searched on at a later date. They wanted drop down
boxes to eliminate the possibility that someone else might enter a
misspelled word and therefore not be able to search on it. How it is
currently set up a contact can have 1-5 predefined specialties which could
be in any order. The best I could come up with so far would be with logic
such as this logic:
if query1 (taken from user) == description1 OR query 1 ==
description2.......... OR description1 == description5
AND
query2 (taken from user does not equal * ) == description2 OR query2 ==
description3 ......etc.
AND keep cycling down until all the queries are met.
EXAMPLE:
if i want to find a contact that specializes in math, physics and
chemistry........... it is possible that the search criteria might by
physics, chemistry and math.......... I appreciate any suggestions. Thank
you.
give descriptions on specialty to each contact via the use of drop down
boxes which will be searched on at a later date. They wanted drop down
boxes to eliminate the possibility that someone else might enter a
misspelled word and therefore not be able to search on it. How it is
currently set up a contact can have 1-5 predefined specialties which could
be in any order. The best I could come up with so far would be with logic
such as this logic:
if query1 (taken from user) == description1 OR query 1 ==
description2.......... OR description1 == description5
AND
query2 (taken from user does not equal * ) == description2 OR query2 ==
description3 ......etc.
AND keep cycling down until all the queries are met.
EXAMPLE:
if i want to find a contact that specializes in math, physics and
chemistry........... it is possible that the search criteria might by
physics, chemistry and math.......... I appreciate any suggestions. Thank
you.