I am just getting into arrays and am creating a sample file which will select distinct names from a table, randomize a number from 1 to 10 and then assign each name that number.
I am so new at arrays that I understand how to create one
dim myArray(9) as Integer
and add to it
for i = 1 to 10
myArray(i) = randomNumber
Next i
But can't figure out how to access the array to see if the number exists and if it does randomize again.
Does this make sense? Any ideas? Let me know if I should post the code I have. Thanks!
I am so new at arrays that I understand how to create one
dim myArray(9) as Integer
and add to it
for i = 1 to 10
myArray(i) = randomNumber
Next i
But can't figure out how to access the array to see if the number exists and if it does randomize again.
Does this make sense? Any ideas? Let me know if I should post the code I have. Thanks!