I have a form and i want a numbers generates authomatically from the field when i open the form and afte saving the number generates for 000-000-02 and more everytime when i save and open th form like this 000-000-01 when i save the form
000-000-02 when i open the form again and save
000-000-03 when i open the form again and save
please give me the code if you want to help me…
please…
thanks I appreciate all things you want gave me to me
Well you obviously already have some code that’s working fine to assign the next number. Just change the code so that it first checks to see what’s in the field that you’re setting the number in. If there’s a valid number in there, then tell the code to skip the rest of the number assignment, otherwise carry on and add a number.
Either that, or set the code to run only if it’s a uidoc.IsNewDoc