UNION query results in memo column being truncated

G

Guest

The following union query results in a memo column returned by
qryPkgRuleIssues being truncated. The query when executed standalone returns
the full text of the column. How do I avoid this problem?

SELECT * FROM qryRptPkgIssues
UNION SELECT * From qryPkgRuleIssues
ORDER BY Closed, Created;
 
J

John W. Vinson

The following union query results in a memo column returned by
qryPkgRuleIssues being truncated. The query when executed standalone returns
the full text of the column. How do I avoid this problem?

SELECT * FROM qryRptPkgIssues
UNION SELECT * From qryPkgRuleIssues
ORDER BY Closed, Created;

Use UNION ALL instead of UNION. The UNION operator by itself removes
duplicates, and in order to detect duplicate values in Memo fields Access
truncates them.

John W. Vinson [MVP]
 
M

Marshall Barton

mscertified said:
The following union query results in a memo column returned by
qryPkgRuleIssues being truncated. The query when executed standalone returns
the full text of the column. How do I avoid this problem?

SELECT * FROM qryRptPkgIssues
UNION SELECT * From qryPkgRuleIssues
ORDER BY Closed, Created;


Can you use UNION ALL instead of UNION?
 

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