Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Character padding ?
Message
De
19/10/2001 17:10:50
 
 
À
19/10/2001 15:54:55
Information générale
Forum:
Microsoft Office
Catégorie:
Access
Divers
Thread ID:
00571094
Message ID:
00571165
Vues:
23
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform