I've got two tables. Table 1 has 4 fields. MemberID, MemberName, CarSelection1, CarSelection2
Each member has picked a CarSelection1 = a race car number and CarSelection2 = another race car number.
In table 2, I have 4 fields also. CarID(my primary key), CarNumber, DriverName, Points
What I am trying to do:
if say MemberID #1 is Bob and he picks CarSelection1 = 24 and CarSelection2 = 88, I want to look into Table 2 and find CarNumber =24 and CarNumber=88 - upon finding the corresponding CarNumbers, I want it to add the Points for each CarNumber together.
When this is complete, I want it to loop through Table 1 for each MemberID and do the same.
The output would be something like this
Bob - Summed Points
John - Summed Points
Joe - Summed Points
any help would be greatly appreciated! thanks
chris