Hi,
Using a soundex function that works with anything except an empty/null
string the following gives me an error part way through the results
select surname, soundex(surname)
from pd
where len(surname & "") > 0
and soundex(surname) = soundex("Smith")
The error is "data type mismatch in criteria expression"
The problem is, after this, all results turn to '#name?' and I can't find a
way of finding out what caused the error.
If I run the same query through a VBA module, iterating and debug.printing
the results I get the error 3071 'this expression is typed incorrectly, or
it is too complex to be evaluated...' and 'rst.movenext' is highlighted.
If I alter the query portion of the vba to a simple select surname query,
then move the soundex part to the iterative section (while not eof...) then
no error occurs..
Sorry if I haven't explained this greatly but I hope someone can shed light
on it!
Thanks,
Chris