I did try it. I have multiple apples in field1 in tblName1 and I have multiples Apples in field2 from tblName2. When I run the query, it lists duplicates of apples.
it lists duplicates of apples
But no duplicates of Oranges ?
So, you must have some space or non visible characters issue:
SELECT Trim(Field1) AS myField FROM tblName1
UNION SELECT Trim(Field2) FROM tblName2;
BTW, you don't use the ALL keyword, did you ?
Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.