Tupacmoche
Registered User.
- Local time
- Today, 11:03
- Joined
- Apr 28, 2008
- Messages
- 291
I have a input form that takes an id which is 10 characters long. This id has leading zero. Most users will copy this id from another system which does not have the leading zero's in it, so it will look like this: 1593582 but, I want the leading zero's to be added automatically when they paste in that number. The name of the field is id and I tried something like this:
Right("0000000000"+ID,10)
If the id is already present it will simple return the Id that has all ten characters but if not when it is concatenated with the zero in my expression it will still return 10 characters. But the above expression is not working. Can anyone see what is wrong?:banghead:
Right("0000000000"+ID,10)
If the id is already present it will simple return the Id that has all ten characters but if not when it is concatenated with the zero in my expression it will still return 10 characters. But the above expression is not working. Can anyone see what is wrong?:banghead: