Thanks Douglas. If I understand you, this function will only allow me to
group by max 255 characters. If 2 fields are the same up to 255 characters it
will treat them as the same field. Well if the max is only 255, then I should
just leave it as a text field.
J.
:
It means take left-most 255 characters (i.e. the first 255 characters) of
the field. If there are fewer than 255 characters in the field, it'll use
whatever's there. As you noted, 255 is the maximum number of characters for
the Text datatype, so that will allow Access to treat the computed field as
Text.
The downside, of course, is that if you've got two fields that are identical
for, say, the first 300 characters, and it's only after that that they
differ, you're out of luck: they will be grouped together.
--
Doug Steele, Microsoft Access MVP
(no e-mails, please!)
Yup, I'm using Access 97. I'll try the Left funtion. What does the 255
mean?
I know that's the max char for a Text field but what does it mean when
used
with the left function?
Thanks for your help.
J.
:
Hi Jade,
Try using the Left function:
GROUP BY Left([MemoFieldName],255)
where MemoFieldName is the name of your memo field. Any chance that you
are
using Access 97? I think you should be able to group memo fields in
Access
2000 and later, without the need for the Left function and without
producing
an error.
Tom
http://www.access.qbuilt.com/html/expert_contributors.html
http://www.access.qbuilt.com/html/search.html
__________________________________________
:
Hello:
Can someone tell me if there is a way to Group by a Memo field in a
Select
Query. I get an error message when I try to do this and have to change
my
comment field of type Memo to type Text instead. Is there a work
around for
this?
Thanks,
J.