Not exactly sure what you're asking for. You created the union query then created a new query linking the union and the table with the attachments? Then what?
Whether the join needs to be left, right or equal depends on which table is guaranteed to have data. Whether or not you can join at all depends on the attachment table having a related field with the union query. Seasoned developers will rarely put attachments in a table rather than linking to them. Maybe what you really need to do is rethink that approach.
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.