B
Ben Hannon
Hi,
I have two queries that use a user defined function called AlphaOnly.
This function strips all non Alpha characters for making a Key for joining
my two queries on for a final append query. However, I just found out that
when Access runs these queries and tries to evaluate the join, it errors
with a "Data type mismatch in criteria expression". I've run the two
queries separately and it gives me what is expected, but when I try to do a
Filter on that field, I get the same error. I assume this has to do with an
issue with User Defined functions? Any insight on this would be
appreciated. Worst case scenario is I create temp tables for this data.
BTW, my function returns a String. I tried changing it to Variant but that
didn't work either.
I have two queries that use a user defined function called AlphaOnly.
This function strips all non Alpha characters for making a Key for joining
my two queries on for a final append query. However, I just found out that
when Access runs these queries and tries to evaluate the join, it errors
with a "Data type mismatch in criteria expression". I've run the two
queries separately and it gives me what is expected, but when I try to do a
Filter on that field, I get the same error. I assume this has to do with an
issue with User Defined functions? Any insight on this would be
appreciated. Worst case scenario is I create temp tables for this data.
BTW, my function returns a String. I tried changing it to Variant but that
didn't work either.