With the following sql, I am trying to return data based on 2 criteria, argDirectParent and argSpouseParent. But it is not working. It brings back faulty data based on only one of the criteria. I figured the "And" would do it.
Select * From tblPersons Where Mother = " & Chr(39) & argDirectParent & Chr(39) Or Father = " & Chr(39) & argDirectParent & Chr(39) And Mother = " & Chr(39) & argSpouseParent & Chr(39) Or Father = " & Chr(39) & argSpouseParent & Chr(39)
Select * From tblPersons Where Mother = " & Chr(39) & argDirectParent & Chr(39) Or Father = " & Chr(39) & argDirectParent & Chr(39) And Mother = " & Chr(39) & argSpouseParent & Chr(39) Or Father = " & Chr(39) & argSpouseParent & Chr(39)