hi to all
I need help with the following:
Let's say tblData looks like this...
I want a query that EXCLUDES any records that DUPLICATE ALL FIELDS to the RIGHT of the ID field. So, the
output would be...
Now, normally I could do this by joining the tblData to a copy of itself ON ...
tblData_1.A = tblData_2.A, tblData_1.D = tblData_2.D, tblData_1.G = tblData_2.G, ... (to field R).
Here is my problem. tblData is derived from a MAKE-TABLE query based on a CROSS TAB query.
I never know how many columns I'll have to the right of the ID column, nor do I know the
names of those fields. (for example there could be 20 fields A, B, C, E, G, ...) So I don't know how
to write the 'ON' expression.
I need the ON expression to be like...
ON each column in tblData_1 to the right of ID equals the corresponding column in tblData_2.
Hope this is stated clearly! Any help is appreciated.
Teach314
I need help with the following:
Let's say tblData looks like this...
Code:
[b]
ID A D G H K L R [/b]
1000 34 5 22 9 12 4 4
1001 23 17 8 9 97 11 6
1002 23 17 8 9 97 11 6
1003 3 44 87 20 5 5 12
1004 34 5 22 9 12 4 4
1005 ... etc
I want a query that EXCLUDES any records that DUPLICATE ALL FIELDS to the RIGHT of the ID field. So, the
output would be...
Code:
[b]
ID A D G H K L R [/b]
1000 34 5 22 9 12 4 4
1001 23 17 8 9 97 11 6
1003 3 44 87 20 5 5 12
... etc
Now, normally I could do this by joining the tblData to a copy of itself ON ...
tblData_1.A = tblData_2.A, tblData_1.D = tblData_2.D, tblData_1.G = tblData_2.G, ... (to field R).
Here is my problem. tblData is derived from a MAKE-TABLE query based on a CROSS TAB query.
I never know how many columns I'll have to the right of the ID column, nor do I know the
names of those fields. (for example there could be 20 fields A, B, C, E, G, ...) So I don't know how
to write the 'ON' expression.
I need the ON expression to be like...
ON each column in tblData_1 to the right of ID equals the corresponding column in tblData_2.
Hope this is stated clearly! Any help is appreciated.
Teach314