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:
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)) '
Merci d'avance
Cordialement
Max
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