Union query changes Memo to Text (256 char limit)

B

baldwin.kevin

Hi, I am using a Union query to join data from two different tables.
The columns that are joined include Memo data types. The recordset
after the union query truncates the Memo fields by quite a bit. I am
guessing that the fields' Memo data type have been changed to Text
data type. Is there any way to prevent this from happening? Thanks.
 
M

Marshall Barton

Hi, I am using a Union query to join data from two different tables.
The columns that are joined include Memo data types. The recordset
after the union query truncates the Memo fields by quite a bit. I am
guessing that the fields' Memo data type have been changed to Text
data type. Is there any way to prevent this from happening? Thanks.


That's to be expected because UNION performs an implicit
DISTINCT. And like DiISTINCT in a SELECT clause, the memo
fields are truncated to 255.

If you can, use UNION ALL instead.
 

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