Hi Guys i'm to run a query to sort unique data between 2 tables. The SQL command i'm using is
SELECT [EBAN].[BANFN]
FROM EBAN2 INNER JOIN EBAN ON [EBAN2].[ID]=[EBAN].[ID]
WHERE ((([EBAN2]![BANFN])<>[EBAN]![BANFN]));
This works fine as it filters out the unique values but, it filters out all unique values from both tables when, i only want the query to filter out the unique values that only exist in EBAN2 table and not in EBAN as well. e.g.
EBAN
1
2
3
4
5
6
7
EBAN2
6
7
8
9
10
So the result would be:
8
9
10
I've tried changing the SQL query i've tried using the wizard but i can't seem to get it to do this. Can anyone help me. I'm sure this is an easy problem, its just i'm not thinking along the right lines.
SELECT [EBAN].[BANFN]
FROM EBAN2 INNER JOIN EBAN ON [EBAN2].[ID]=[EBAN].[ID]
WHERE ((([EBAN2]![BANFN])<>[EBAN]![BANFN]));
This works fine as it filters out the unique values but, it filters out all unique values from both tables when, i only want the query to filter out the unique values that only exist in EBAN2 table and not in EBAN as well. e.g.
EBAN
1
2
3
4
5
6
7
EBAN2
6
7
8
9
10
So the result would be:
8
9
10
I've tried changing the SQL query i've tried using the wizard but i can't seem to get it to do this. Can anyone help me. I'm sure this is an easy problem, its just i'm not thinking along the right lines.