Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Character padding ?
Message
From
19/10/2001 17:10:50
 
 
To
19/10/2001 15:54:55
General information
Forum:
Microsoft Office
Category:
Access
Miscellaneous
Thread ID:
00571094
Message ID:
00571165
Views:
24
This message has been marked as a message which has helped to the initial question of the thread.
>How can I pad an expression (character or numeric) with a character?
>
>For example:
>
>I want to store 1 as 0001
>
>In VFP the syntax is padl(expression,4,'0') but obviously this didn't work in Access. Any help would be appreciated

If I remember correctly you work with A2000 right? There is a string function which will help you get at the desired result:
sPadded = String(4 - Len(sNoPad), "0") & sNoPad
Assumming that sNoPad is a string variable. HTH
Previous
Reply
Map
View

Click here to load this message in the networking platform