R
rachael
Hello -
I am trying to creat a lookup table that is based on contains, not the
entire field matching exactly.
For example, in my lookup table, I have two columns "lookup_value" and
"number". the lookup value field contains entries like 'smi" or "joh" the
number field contains 1 and 2 respectively. my main table has two fields
"last_name" and "result". I want to write a qry that says if last_name
contains *lookup_value" then update "result" with corresponding number, else
leave null. So if the last_name field is smith or resmith or smithson, I
want number 1 returned.
thoughts?
I am trying to creat a lookup table that is based on contains, not the
entire field matching exactly.
For example, in my lookup table, I have two columns "lookup_value" and
"number". the lookup value field contains entries like 'smi" or "joh" the
number field contains 1 and 2 respectively. my main table has two fields
"last_name" and "result". I want to write a qry that says if last_name
contains *lookup_value" then update "result" with corresponding number, else
leave null. So if the last_name field is smith or resmith or smithson, I
want number 1 returned.
thoughts?