Hello everyone!
I have two select queries with identical structures, joined on a key field.
I want to compare the two, and extract the keys of the records with differences into another query / table.
For example:
i.imgur.com/yLxFywh.png
(sorry I don't have enough post count to insert image)
There are two problems:
- The fields in query 1 and 2 will change based on selection the user made on another form, except for the Key field and the Date field. The structures of these two queries will always be identical though.
- All fields need to be compared except for the Key field and the Date field.
I've been stuck with this for a while now; I think it should not be too complicated, but I'm such a noob at VBA
I really hope someone could help me with this. Also, I'd really appreciate it if you can be a bit detailed in your guidance, cause I'm really not good at VBA >.<
Thanks in advance!
I have two select queries with identical structures, joined on a key field.
I want to compare the two, and extract the keys of the records with differences into another query / table.
For example:
i.imgur.com/yLxFywh.png
(sorry I don't have enough post count to insert image)
There are two problems:
- The fields in query 1 and 2 will change based on selection the user made on another form, except for the Key field and the Date field. The structures of these two queries will always be identical though.
- All fields need to be compared except for the Key field and the Date field.
I've been stuck with this for a while now; I think it should not be too complicated, but I'm such a noob at VBA

Thanks in advance!
Attachments
Last edited: