Repost: Union query truncating field

R

Richard Coutts

I have two select queries, "qryJobSpecsAlwaysList" and
"qryJobSpecsBySchedCat," that list some fields, including a Memo field
called "Description" that can contain text values that can be 500
characters or more. Both queries work great. Now I need to combine
the two outputs into a single output. So I wrote a simple Union query
that looks like this:

SELECT qryJobSpecsAlwaysList.Description
FROM qryJobSpecsAlwaysList;

UNION SELECT qryJobSpecsBySchedCat.Description
FROM qryJobSpecsBySchedCat;

It lists the proper Memo field "Description" but the text of each
field is getting truncated to 250 characters or so.

Please help!
Rich
 
J

John Vinson

SELECT qryJobSpecsAlwaysList.Description
FROM qryJobSpecsAlwaysList;

UNION SELECT qryJobSpecsBySchedCat.Description
FROM qryJobSpecsBySchedCat;

It lists the proper Memo field "Description" but the text of each
field is getting truncated to 250 characters or so.

Change UNION to UNION ALL and you'll get the full length. What's
happening is that Access is truncating the field to 255 bytes and
using it for grouping to remove duplicates.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top