Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old February 16th, 2006, 06:25 AM
jacoballen@gmail.com
Guest
 
Posts: n/a
Default Query Truncates Memo Fields

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
Default 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
Default Re: Query Truncates Memo Fields

Thanks. This is working great.
Jacob

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles