Here is a simple example of the set up:
Table1 (table name)
ID (field name in Table1)
name (field name in Table1)
Table2 (second table name)
name (field name in Table2)
answer (field name in Table2)
content of 2 tables:
Table1
ID: 1 name: Bob
ID: 2 name: Sally
ID: 3 name: Jane
Table2
name: Bob answer: yes
name: Sally answer: no
Here is the needed query:
I need to get all info on the people in Table1 based on the following...
WHERE Table1.name=Table2.name AND Table2.answer='no'...
that part is easy but now here is the part I can't seem to figure out...
OR name does not exist in Table2 yet.
I have it set up to create an entry in Table2 when updating Table1, but I need to be able to access the records from Table1 (as described above) in a list BEFORE that update and creation is performed.
I do not want any records from Table1 that have a matching record in Table2 where answer='yes'.
Anyone got any ideas?