Originally Posted by
June7
Code is required to save genered ID. I use only VBA, don't know if macro can do this.
Remove the = sign from in front of each Int.
Why the 2000-1000, 3000-2000 terms. They just evaluate to 1000.
How many fields of study? Nested IIf is supposed to have a limit of 7 levels.
BETWEEN AND won't work in IIf expression.
Use <= and >=, like:
x >= And x<=
You are trying to use Rnd() to generate a unique identifer? I would not trust Rnd() to not duplicate.
Did you review the referenced link? And did you consider Steve's question about hitting ceiling of each study field number set?