I need to compare 2 sets of vales obtained from multiple tables and based on mulitple criteria.
I have up to 100 values in set A (Named as T1, T2, etc, T100) and another potential 100 values in set B (Named T1a, T2a, etc, T100a).
I need to compare each value in set A against each value in set B and the only way I can think of to do it is
If T1 = T1a then
TAnd1=T1
Elseif T1 = T2a then
TAnd1=T1
Elseif etc
TAnd1=T1
End if
If T2 = T1a then
TAnd2=T2
Elseif T2 = T2a
TAnd2=T2
etc
End if
Which produces a set of TAnd values (values in both set A and set B) which I can then string together and produce one record set which has both values from A and B. Also need to eventually be able to have up to 10 different recordsets in the comparison but once I've don I can probably get the rest.
Can anyone suggest a succinct way to do this? I'm flummoxed and my way is horrible (exceedingly long repetitive code). All it is an AND function really...
Thanks
I have up to 100 values in set A (Named as T1, T2, etc, T100) and another potential 100 values in set B (Named T1a, T2a, etc, T100a).
I need to compare each value in set A against each value in set B and the only way I can think of to do it is
If T1 = T1a then
TAnd1=T1
Elseif T1 = T2a then
TAnd1=T1
Elseif etc
TAnd1=T1
End if
If T2 = T1a then
TAnd2=T2
Elseif T2 = T2a
TAnd2=T2
etc
End if
Which produces a set of TAnd values (values in both set A and set B) which I can then string together and produce one record set which has both values from A and B. Also need to eventually be able to have up to 10 different recordsets in the comparison but once I've don I can probably get the rest.
Can anyone suggest a succinct way to do this? I'm flummoxed and my way is horrible (exceedingly long repetitive code). All it is an AND function really...
Thanks