I have a database that tracks backup tapes. Each tape field is setup as a Text data type.
The external labels of the tapes we use are 'BK1'. What I had wanted to achieve in the Form design is that the user would just have to type in the tape number and the BK1 would display as a prefix. I was successful at this by setting up >"BK1" in the fields Format property. However, here is my predicament. Now, if the user enters '1', it will show as BK11. I need preceeding zero's to the left of the number depending on what number is entered. For example, if '1' is entered, it should show as BK10001; '10' should show as BK10010; and '110' should show as BK10110.
Basically, in a nutshell, if it is a 1 digit entry I need 3 preceeding zeros; 2 digit number will have 2 preceeding zeros; and a 3 digit number will have 1 preceeding zero.
Is this possible ?
Thanks!
The external labels of the tapes we use are 'BK1'. What I had wanted to achieve in the Form design is that the user would just have to type in the tape number and the BK1 would display as a prefix. I was successful at this by setting up >"BK1" in the fields Format property. However, here is my predicament. Now, if the user enters '1', it will show as BK11. I need preceeding zero's to the left of the number depending on what number is entered. For example, if '1' is entered, it should show as BK10001; '10' should show as BK10010; and '110' should show as BK10110.
Basically, in a nutshell, if it is a 1 digit entry I need 3 preceeding zeros; 2 digit number will have 2 preceeding zeros; and a 3 digit number will have 1 preceeding zero.
Is this possible ?
Thanks!