Hi
I am trying to do another DLookup in my query, using a First DLookup result as the 2nd's field name. I will post the code hopefully to explain better.
1st Dlookup, this returns a number from 0 to 5, which is working.
2nd DLookup, not working properly as it returns the same values as the 1st DLookup even though it is supposed to be looking at a different Table.
Image showing joins etc
Thanks for any help
Stu
I am trying to do another DLookup in my query, using a First DLookup result as the 2nd's field name. I will post the code hopefully to explain better.
1st Dlookup, this returns a number from 0 to 5, which is working.
Code:
SNSIndex: DLookUp([SoilType],[TableName])
2nd DLookup, not working properly as it returns the same values as the 1st DLookup even though it is supposed to be looking at a different Table.
Code:
N: DLookUp([SNSIndex],[TableNameN],[Soil]=[SoilType])
Image showing joins etc

Thanks for any help
Stu