I am using Access 2003 and one of my queries returns truncated text -- truncated from the front. I use DISTINCT in my query. When I remove DISTINCT the texts look fine.
SELECT DISTINCT AGENCY_ID, PROGRAM_ID, ACTIVITY_ID, ... DESCRIPTION
FROM AGENCY, PROGRAM, ACTIVITY, ...
WHERE ...
I used DISTINCT to get unique values. The text value in the DESCRIPTION field es truncated.
Without DISTINCT the query returns 3 times as many rows due to duplication. I also tried DISTINCTROW, which eliminates some duplication, but not exactly what I want.
Use:
GROUP BY AGENCY_ID, PROGRAM_ID, ACTIVITY_ID, ...
With a column of First([Description]).
You could also try create the distinct query first without the Description field. Then create another query that is based on the distinct query and adds the table/query with the Description field.
Duane
MS Access MVP
Find out how to get great answers faq219-2884.
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.