OLE field in UNION query

90 pts.
Tags:
Microsoft Access
Microsoft Access queries
OLE object data type
I need to join 2 tables, each with a field with an OLE object data type, in a UNION query in MS Access, but I get the message that an OLE field cannot be used in the Select clause of a union query. Does anyone know a work-around?

Answer Wiki

Thanks. We'll let you know when a new response is added.

It should work if you use UNION ALL instead of UNION (but keep in mind that UNION ALL will not remove duplicates from the results).

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Mlwonio
    This works but is incredibly slow when generating the complete set. I still need to see how efficiently it works where needed: selecting a few rows in a subform.
    90 pointsBadges:
    report
  • carlosdl
    I think it would have been slower if it had worked without the ALL keyword, since to remove duplicates the engine needs to sort the result set, which is usually a resource-intensive operation.
    69,510 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following