View Single Post
  #2  
Old January 26th, 2005, 11:46 PM
John Vinson
external usenet poster
 
Posts: n/a
Default

On Wed, 26 Jan 2005 14:35:02 -0800, "datawizzard"
wrote:

I have the "Unique Values" property set to "Yes" to
avoid getting duplicate results. When I run the query, the memo fields are
truncated at 255 characters.


Yep. This is well known behavior.

It's not really a "bug" though you're quite right that it should be
better documented. After all, a Memo field could contain a gigabyte of
data - having Access compelled to check the gigabyte of data in this
record with the gigabyte of data in the next record to discover that
they are different in the 942,845,298th byte is perhaps a bit
unreasonable! g

What you can do to exclude duplicates on the *remaining* fields is to
use a Totals query; Group By the fields other than the memo (and, if
you wish, on a calculated field Left([memofield], 255); and use the
First operator on the memo field to find the first instance of the
memo field in the group. If your data contains records where the ONLY
difference between the records is past the 255th byte in the memo
field you'll miss that fact (and see only the first of the
near-duplicates). If your data has such records I don't know of a good
way to de-duplicate them though!

John W. Vinson[MVP]