hi ..
i am facing the problem during barcode reading from the barcode scanner.
i am using the below mention code:

Private Sub txtMessage_Change()
If Len(txtMessage.Text) > 4 and Len(txtMessage.Text) < 13 Then
txtMessage.SelStart = Len(txtMessage)

in this code it accepts only 5 digit barcode value.

veena madam kindly help me.

i want to know, how to read multiple lenght barcode.

can you tell us what are you planning to do after reading a multiple length barcode?..

If Len(txtMessage.Text) > 4 and Len(txtMessage.Text) < 13 Then
txtMessage.SelStart = Len(txtMessage)

your code should accept barcode 5 up to 12 digit

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.