Check whether a membership number has already been assigned

I have a "Members" table and there is a [Membership Number] field. The membership number is an ID and also a label. I want the user to be able to enter any five-digit member number when creating a new member record, but the entry will only be accepted if the number does not already exist. If he enters a number that has already been assigned, he should receive the message โ€œNumber not permitted - already assignedโ€. Can someone please help me what the Valid If code should look like for this to work? Thanks Stephan (RedCrossIuK)

Solved Solved
0 5 137
1 ACCEPTED SOLUTION

Forget about the UNIQUEID() and use just the RANDBETWEEN(). Also.. remove your min and max values (5).

View solution in original post

5 REPLIES 5
Top Labels in this Space