Hello all.... Hope everyone is having a good night.
I am trying to wrap my head around a query. I have the following table w/ sample data....
connectionID | animal1ID | animal2ID | Notes
1 30 269 Lucy and Mia were surrendered together.
The animal1ID and animal2ID fields reference my Animals table with the following (important) fields
animalID | [Animal Name]
I have a subform on my main animals page called connections. I am wanting to run a query and find the other animals that the current one is connected to. For instance, (Mia is id 30, and Lucy is ID 269) when on Mia's page the animalID on the form is 30, I want the query to return 269 Lucy [tblConnections.Notes].
The animal may be listed in either animal1ID or animal2ID. Some animals may be linked to more than one animal such as a litter of cats, or multiple animals that are surrendered together.
I have tried a combinations of joins and WHERE IN statements and cannot find the right combination here.... any help would be greatly appreciated.