Union All Query bombs report

S

scott

I have a union query that joins tables that have memo fields. I saw help in
the Discussion Group that suggested using Union All to get all the characters
in the query. It works fine for the query (I see all the characters in the
memo field in the datasheet), but it bombs the report. MS Access closes,
offering to repair and restart. Repairing and restarting does not work.

The report worked fine (aside from not having all the characters in the
field) when the query was Union instead of Union All (and it works now if I
change it back to just Union).

Any suggestions?
 
S

scott

On further searching, I found that joining on a non-indexed field can cause
problems. The other problem cited was grouping on the memo field, which my
report does not do. My report joins a calculated field on an indexed field.
If that is the problem, I don't know what to do. Is there a way to make a
calculated field an indexed field?
 
J

Jeanette Cunningham

Scott,
You could try this: replace the Union All query with a set of append
queries.
Set up a temp table just to use for reporting.
Append each query used in your union all query to the temp table, one at a
time.
You can often do the calculation field bit on the temp table, instead of in
the query that feeds the union all query.
Base the report on a query drawn from the temp table.

Jeanette Cunningham
 

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

Similar Threads

UNION Query with Join 3
Union Query and Field Alias 7
Query too complex my ass 13
Date Limit in Crosstab from Union query 2
Currency Format Lost in Union Query 1
union query 4
Union Query 2
Union Query 0

Top