G
Guest
I need to see if a value is repeated in my one field called GeneticIDnum.
The table it is in is Table: Genetic ID num.
What I need to do is to check all of the GeneticIDnum in the the table to
see if the new random number that was generated is the same as one in the
table. If it is then I need to make another random number. If it is not in
the table then I need to put it into the table.
I need some help with the VB code to do this. It would be greatly
appreciated for some help.
Here is my code for the random number:
Randomize
Int((upperbound - lowerbound + 1) * Rnd + lowerbound)
randomNumber = Rnd
The table it is in is Table: Genetic ID num.
What I need to do is to check all of the GeneticIDnum in the the table to
see if the new random number that was generated is the same as one in the
table. If it is then I need to make another random number. If it is not in
the table then I need to put it into the table.
I need some help with the VB code to do this. It would be greatly
appreciated for some help.
Here is my code for the random number:
Randomize
Int((upperbound - lowerbound + 1) * Rnd + lowerbound)
randomNumber = Rnd