Q: textbox content select

G

Guest

Hello
I am using a textbox in my form to get users scan barcode in with a barcode
scanner. I need to get characters in textbox be selected so that if there was
anything in the textbox before scanning, it should be removed and new barcode
coming from scanner should be accepted. Can I get characters be selected in
the textbox?
Thanks,
 
J

John Vinson

Hello
I am using a textbox in my form to get users scan barcode in with a barcode
scanner. I need to get characters in textbox be selected so that if there was
anything in the textbox before scanning, it should be removed and new barcode
coming from scanner should be accepted. Can I get characters be selected in
the textbox?
Thanks,

Take a look at the SelStart and SelLength properties in the VBA help.

John W. Vinson[MVP]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top