Zeros inserted as placeholders

goaksmith

Registered User.
Local time
Today, 13:16
Joined
Jul 31, 2002
Messages
74
I want a number field in my table to be 4 digits. I have set up an input mask. 0000 This is working fine. When someone puts in 766 it tells gives them the warning message that there are not enough digits. My question is: Is there a way to make the number put a default 0 in front if there is a 3 digit number? For example, if someone uses the number above of 766 it will change it to 0766. Or if they put in 38 it will put in 0038?

Thanks in advance for your help.

Gretchen
 
Try this on the textbox's beforeupdate

Format([Textbox],"0000")
 

Users who are viewing this thread

Back
Top Bottom