1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| Option Explicit
Private Sub TextBox_quant_Change()
If TextBox_quant.Value = TextBox_art.Value Then
MsgBox ("Erreur de scan : vous avez scanné le mauvais code barre. Scannez le code-barre de quantité s'il vous plait.")
Inventaire.TextBox_quant.SetFocus
TextBox_quant.SelStart = 0
TextBox_quant.SelLength = Len(TextBox_quant.Text)
End If
End Sub
Private Sub TextBox_Lot_Click()
If TextBox_lot.Value = TextBox_quant.Value Then
MsgBox ("Erreur de scan : vous avez scanné le mauvais code barre. Scannez le code-barre de quantité s'il vous plait.")
Inventaire.TextBox_quant.SetFocus
TextBox_quant.SelStart = 0
TextBox_quant.SelLength = Len(TextBox_lot.Text)
End If
End Sub |