Re: Number entry (leading zeros)
- From: salad <oil@xxxxxxxxxxx>
- Date: Tue, 08 Aug 2006 14:51:39 GMT
LFM wrote:
I am sure there is a simple answer.In your AfterUpdate event of the field you could do something like
I have a database that where I am trying to setup a security login
based on employee number.
Employee number is a 5 character numeric field. The databse has a sql
odbc link into the HR system to pull the emp number, emp name, and a
few other key fields. Because of the way the sql/odbc link is - this
field is a text field
Example emp numbers are:
00063
01222
On the login form, I have an unbound text box.
I've put an input mask of "00000" and default value of 0
I would like to make it so that the data entry starts from the right
side of the box. In otherwords, I would like to make it so that if the
person with employee number 63 goes to login, he only needs to type in
63 and not 00063. I would like the field to automatically add the
preceeding zeros if necessary.
Me.SecID = Right("00000" & Me.SecID,5)
.
- References:
- Number entry (leading zeros)
- From: LFM
- Number entry (leading zeros)
- Prev by Date: Re: Extracting email attachment in Outlook
- Next by Date: Re: Unable to compact database converted to Access 2003 format
- Previous by thread: Number entry (leading zeros)
- Next by thread: Re: Number entry (leading zeros)
- Index(es):
Relevant Pages
|