Tabledef.attributes is not a VBA issue per se, it's a DAO object model question, and should be addressed in the DAO help file.
The real question for this, I think, is: In a For loop how can one jump/continue back to the top loop, with the counter incremented and do the for loop again. In my case I have two scenarios where the one works and the other scenario is exactly the question that is asking here. (according to my understanding)
1. The first scenario is where you have the For loop and in the For loop an if statement is matched and you want to EXit the for loop. For this you use Exit For. 2. The second scenario you do not want to exit, but continue/jump to the top if a if statement is matched and you do not want to perform the rest of the code in the loop, thus not exit but continue with the loop incremented.
1. Example for first scenario:
For row_num 1 to n
some code statements and then an if statement follows.
If xx = AA then (some condition is true)
Exit for (you completely want to exit the For loop)
else
do some code
end if
next row_num
2. Example second scenarion:
For row_num 1 to n
some code statements and then an if statement follows.
If xx = AA then (some condition is true)
Continue For (the if statement is not matched and you just do not want the else statements to execute, but still want to continue witht loop)
else
do some code
end if
next row_num
As far as I know in vb the Continue For is an available option, but not in vba. Thus the question, how to continue/jump to top with row_num incremented and loop again in vba, for the, For loop ?
........