Connecting Tech Pros Worldwide Help | Site Map

Query Truncates Memo Fields

  #1  
Old February 16th, 2006, 06:25 AM
jacoballen@gmail.com
Guest
 
Posts: n/a
I have a query that combines the results of three related tables. The
memo fields are truncated to 255 characters, but I need all the
information in them. I'm aware that removing code such as DISTINCT and
GROUPBY will fix this problem (as discussed in other threads in this
group), but I need to limit the query results to unique values, which
is what DISTINCT does for me. Any suggestions?
Thanks,
Jacob

  #2  
Old February 16th, 2006, 07:05 AM
Allen Browne
Guest
 
Posts: n/a

re: Query Truncates Memo Fields


In a GROUP BY query, you can get the whole memo field by choosing First
instead of Group By in the total row under your memo field.

For a query that uses DISTINCT, omit the memo fields. Save the query. Then
use it as a source "table" in another query, joined to the one that contains
the memo. Since this new query is not using DISTINCT, you can now pull in
the entire memo field.

If you are actually trying to de-duplicate based on the contents of the memo
fields, you are out of luck. Access will compare the first 255 characters of
the memo only.

--
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.

<jacoballen@gmail.com> wrote in message
news:1140070556.775844.81380@g47g2000cwa.googlegro ups.com...[color=blue]
>I have a query that combines the results of three related tables. The
> memo fields are truncated to 255 characters, but I need all the
> information in them. I'm aware that removing code such as DISTINCT and
> GROUPBY will fix this problem (as discussed in other threads in this
> group), but I need to limit the query results to unique values, which
> is what DISTINCT does for me. Any suggestions?
> Thanks,
> Jacob[/color]


  #3  
Old February 16th, 2006, 07:25 AM
jacoballen@gmail.com
Guest
 
Posts: n/a

re: Query Truncates Memo Fields


Thanks. This is working great.
Jacob

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Crosstabs impossible on memo fields as 'value'? Emily Jones answers 3 August 11th, 2006 04:55 PM
Word truncates Memo field when using Automation from Access Laurie answers 3 November 13th, 2005 01:28 PM
Select query truncates memo field Anna answers 4 November 13th, 2005 09:46 AM
Union Query Truncates Memo Fields jimmyshaw83@gmail.com answers 0 November 13th, 2005 08:19 AM