G
Guest
Hi I have a small membership database.
I have a field called MNumber which is a unique number it is not the primary
key but it does have an index set to unique so cant have duplicate values.
I have a button on the form that will create a random number and fill in
this field but I dont have a way of checking if the random number is unique
before the button places the number in the field.
I would like to click the button and have the database check the number
against all the other membership numbers then if its not unique create a new
numbers untill it is unique then allow it to be placed in the field.
Any help most apreciated
Thanks
Steve
I have a field called MNumber which is a unique number it is not the primary
key but it does have an index set to unique so cant have duplicate values.
I have a button on the form that will create a random number and fill in
this field but I dont have a way of checking if the random number is unique
before the button places the number in the field.
I would like to click the button and have the database check the number
against all the other membership numbers then if its not unique create a new
numbers untill it is unique then allow it to be placed in the field.
Any help most apreciated
Thanks
Steve