J
jbiggs via AccessMonster.com
Sample of code I am trying to re-write recursively:
d1 = DLookup("[id]", "table")
d2 = DLookup("[id]", "table", "[id]<>" & d1)
d3 = DLookup("[id]", "table", "[id]<>" & d1 & " and [id]<>" & d2)
This function currently goes to d15, which as you can imagine is very long.
I am confused on how to do the checks recursively and haven't been able to
get the code right.
d1 = DLookup("[id]", "table")
d2 = DLookup("[id]", "table", "[id]<>" & d1)
d3 = DLookup("[id]", "table", "[id]<>" & d1 & " and [id]<>" & d2)
This function currently goes to d15, which as you can imagine is very long.
I am confused on how to do the checks recursively and haven't been able to
get the code right.