Memo Field Truncated - No DISTINCT or GROUP BY

G

Guest

I have a very simple Union query that does not use DISTINCT or GROUP BY. It
does use ORDER BY but the fields in that statement are not memo fields. My
memo field is truncated. The query is shown below. Any help would be
appreciated.

SELECT [DateOfMinutes], [TypeOfAction1] AS [TypeOfAction], [Action],
[Superseded?],[DateSuperseded]
FROM [Historical Actions]
WHERE [DateOfMinutes] Is Not Null
UNION SELECT [DateOfMinutes], [TypeOfAction2] AS [TypeOfAction],
[Action],[Superseded?],[DateSuperseded]
FROM [Historical Actions]
WHERE [DateOfMinutes] Is Not Null and [TypeOfAction2] Is Not Null
ORDER BY [TypeOfAction], [DateOfMinutes];
 
G

Guest

Well, I had to go outside the community group to find the answer. I put the
search words in my Yahoo search engine and came up with the answer in about
45 seconds. I needed to change the UNION to UNION ALL and it worked like a
charm.
 
A

Allen Browne

Yep: UNION will do it.

For future reference, Cheryl, see:
Truncation of Memo fields
at:
http://allenbrowne.com/ser-63.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia

Reply to group, rather than allenbrowne at mvps dot org.

Cheryl L. said:
Well, I had to go outside the community group to find the answer. I put
the
search words in my Yahoo search engine and came up with the answer in
about
45 seconds. I needed to change the UNION to UNION ALL and it worked like
a
charm.
--
Cheryl L.


Cheryl L. said:
I have a very simple Union query that does not use DISTINCT or GROUP BY.
It
does use ORDER BY but the fields in that statement are not memo fields.
My
memo field is truncated. The query is shown below. Any help would be
appreciated.

SELECT [DateOfMinutes], [TypeOfAction1] AS [TypeOfAction], [Action],
[Superseded?],[DateSuperseded]
FROM [Historical Actions]
WHERE [DateOfMinutes] Is Not Null
UNION SELECT [DateOfMinutes], [TypeOfAction2] AS [TypeOfAction],
[Action],[Superseded?],[DateSuperseded]
FROM [Historical Actions]
WHERE [DateOfMinutes] Is Not Null and [TypeOfAction2] Is Not Null
ORDER BY [TypeOfAction], [DateOfMinutes];
 

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