Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Query Returns First 255 Characters of Memo Field

3 views
Skip to first unread message

Pete B.

unread,
Jul 10, 2006, 9:31:01 PM7/10/06
to
I could use some help with this one. I wrote a query that is supposed to
return all of the data contained in a memo field. Instead, it returns only
the first 255 characters. I wrote a test query to see if the problem was in
the table and the test query returns all of the memo field. What can I do to
fix the original query so that it returns all of the data from the memo
field? (The data type in the table is memo, not text.)

Thanks,

Pete

Duane Hookom

unread,
Jul 10, 2006, 9:47:21 PM7/10/06
to
You could start by posting the SQL view of your query.

--
Duane Hookom
MS Access MVP

"Pete B." <Pe...@discussions.microsoft.com> wrote in message
news:41024CD6-1B0E-46D1...@microsoft.com...

Allen Browne

unread,
Jul 10, 2006, 11:14:02 PM7/10/06
to
The core if the issue is that Access returns only the first 255 characters
if it has to process the field.

That applies if you Group By a memo field (totals query), or if the query
deduplicates records (e.g. it has a DISTINCT or UNION), or if formatting is
applied to the field.

Examples of solving the problem:
a) If it is a Totals query, you could solve the problem by chosing First in
the Total row under the memo field instead of Group By.

b) Use UNION ALL instead of UNION.

c) Remove the DISTINCT. (If necessary, you can save the query without the
memo, and then build another query on top of that to get the memo.)

d) Remove anything from the Format property of the field in your table (or
the Format property of the text box on your form/report.)

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Pete B." <Pe...@discussions.microsoft.com> wrote in message
news:41024CD6-1B0E-46D1...@microsoft.com...

0 new messages