Thanks, but I can't get it to work.
Currently my main form has the ClientID field in the header. I also have two subforms embedded into the form. I tried adding a "Save" button and added the coding:
If Not IsNumeric([ClientID]) Then
[ClientID] = Int((999999 * Rnd()) + 100000)
End If
in the "On Click" codebuilder section of the button; however, it still does not automatically populate the ClientID field.
Where exactly on the form do I have to put the:
" If Not IsNumeric([ClientID]) Then
[ClientID] = Int((999999 * Rnd()) + 100000)
End If "
?
I currently have a few command buttons on the form, two of them which print reports "on click" functions, and another which is an Add Record "on click" function.
Thanks again, this does seem to be quite a challenge for what seemed like a simple problem. !
Currently my main form has the ClientID field in the header. I also have two subforms embedded into the form. I tried adding a "Save" button and added the coding:
If Not IsNumeric([ClientID]) Then
[ClientID] = Int((999999 * Rnd()) + 100000)
End If
in the "On Click" codebuilder section of the button; however, it still does not automatically populate the ClientID field.
Where exactly on the form do I have to put the:
" If Not IsNumeric([ClientID]) Then
[ClientID] = Int((999999 * Rnd()) + 100000)
End If "
?
I currently have a few command buttons on the form, two of them which print reports "on click" functions, and another which is an Add Record "on click" function.
Thanks again, this does seem to be quite a challenge for what seemed like a simple problem. !