A very complex query, involves four tables (about 2/3 of that data in the enterprise system that it is) and 4 very complex complex criteria. one of which is so complex I had to write a function for it)
THAT works.
But if the user right-clicks on the form (or me on the query) and tries to filter by Customer ID number or Name, "Data type mismatch in criteria expression" Its a number, being filtered by a number. it is NOT a type mismatch.
Now CustID IS one of the key fields linking the tables together. But I'm sure I've filtered by keys before in 20 years of coding MSA. (and name sure isn't)
I'm stuck here, :banghead: any ideas??
ALREADY TRIED:
1. hardcoding a form filter
2. adding the criteria to the query(with LIKE and/or various arrangements of quotes)
3. building a 2-step query
twice: filtering to the custID first, or second.
THAT works.
But if the user right-clicks on the form (or me on the query) and tries to filter by Customer ID number or Name, "Data type mismatch in criteria expression" Its a number, being filtered by a number. it is NOT a type mismatch.
Now CustID IS one of the key fields linking the tables together. But I'm sure I've filtered by keys before in 20 years of coding MSA. (and name sure isn't)
I'm stuck here, :banghead: any ideas??
ALREADY TRIED:
1. hardcoding a form filter
2. adding the criteria to the query(with LIKE and/or various arrangements of quotes)
3. building a 2-step query
twice: filtering to the custID first, or second.