Hoping someone can shine a light on this please...
I have two queries which I join to form another list of data. However, I get the "data type mismatch in criteria expression" error.
The joined fields are sourced from two separate tables and are both Short Text in the source tables. I have tested at this level and the join works.
However, I have to manipulate one of the fields as follows: HHorse: CStr(IIf(InStr(1,[HistAll]![HorseName],"(")=0,[HistAll]![HorseName],Left([HistAll]![HorseName],InStr(1,[HistAll]![HorseName],"(")-1)))
The idea here is to find and HorseName that has "(" in it and return just the text before the "(". E.g. Coolagh Moll (IRE) becomes Coolagh Moll).
When I try to join HHorse with either of the original tables I get the "data type mismatch" error.
Any help would be greatly appreciated.
Thanks
I have two queries which I join to form another list of data. However, I get the "data type mismatch in criteria expression" error.
The joined fields are sourced from two separate tables and are both Short Text in the source tables. I have tested at this level and the join works.
However, I have to manipulate one of the fields as follows: HHorse: CStr(IIf(InStr(1,[HistAll]![HorseName],"(")=0,[HistAll]![HorseName],Left([HistAll]![HorseName],InStr(1,[HistAll]![HorseName],"(")-1)))
The idea here is to find and HorseName that has "(" in it and return just the text before the "(". E.g. Coolagh Moll (IRE) becomes Coolagh Moll).
When I try to join HHorse with either of the original tables I get the "data type mismatch" error.
Any help would be greatly appreciated.
Thanks