Code Postal

apdf1

XLDnaute Impliqué
Bonjour,

J'ai un probleme avec un textbox qui me renvoie le code postal, quand j'ai un code postal commencant par un "0" il l'ignore alors que j'avais mis le code suivant:
Code:
Private Sub TextBox6_Change()
TextBox6.MaxLength = 5
End Sub

Ma question est: Peut on mettre dans la listbox la même chose que la date?

C'est à dire :Me.TextBox3 = CDate(Me.ListBox1.List(ListIndex, 2)) '

Code:
Me.TextBox1 = Me.ListBox1.List(ListIndex, 0) ' Ref
                 Me.TextBox2 = Me.ListBox1.List(ListIndex, 1) ' Nom
                 Me.TextBox3 = CDate(Me.ListBox1.List(ListIndex, 2)) ' Date                     
                 Me.TextBox4 = Me.ListBox1.List(ListIndex, 3) ' N° Facture
                 Me.TextBox5 = Me.ListBox1.List(ListIndex, 4) ' Adresse
                 Me.TextBox6 = Me.ListBox1.List(ListIndex, 5) ' CP
                 Me.TextBox7 = Me.ListBox1.List(ListIndex, 6) ' Ville

Merci d'avance

Cordialement

Max
 

Discussions similaires

Réponses
17
Affichages
994
Réponses
17
Affichages
491
Réponses
17
Affichages
1 K