Hello
I am wondering if anyone has any ideas on what I am doing wrong. I am trying to select certian fields based on criteria that UCASE(last_name)=UCASE(last_name2), however I only have one field for name which includes first and last name. And name2 is another field with different names, also includes first and last names.So this is what I am trying to do:
SELECT name, position, status, (instr(name,',') )-1) AS [last name]
FROM rst_tbl
WHERE UCASE(left(name,( (instr(name,',') )-1) )) = UCASE( left([name2], ((instr([name2],',') )-1)) ) ;
I keep getting data type mismatch error!
Any suggestions would be greatly appreciated
Thanks,
Judy
I am wondering if anyone has any ideas on what I am doing wrong. I am trying to select certian fields based on criteria that UCASE(last_name)=UCASE(last_name2), however I only have one field for name which includes first and last name. And name2 is another field with different names, also includes first and last names.So this is what I am trying to do:
SELECT name, position, status, (instr(name,',') )-1) AS [last name]
FROM rst_tbl
WHERE UCASE(left(name,( (instr(name,',') )-1) )) = UCASE( left([name2], ((instr([name2],',') )-1)) ) ;
I keep getting data type mismatch error!
Any suggestions would be greatly appreciated
Thanks,
Judy