Steve@trop
Registered User.
- Local time
- Yesterday, 18:23
- Joined
- May 10, 2013
- Messages
- 148
I got it. It works without the brackets. However, my theory must be incorrect. It still doesn't work. I'll have to live with the user having to press one more button to get to the form.
If I could find the setting that turns off choosing an item in the drop-down with the keyboard it would work.
This thread has helped me to clarify the problem at least. For some reason, when the barcode reader puts the asset number into the field, the combo box is using the first character to choose the first item that starts with that character. Most of the barcodes (asset numbers) start with the number 1. When the barcode is scanned, as soon as that field gets the number 1 it chooses that first item.
If I don't use the barcode scanner and just type the number 1 in the field with the keyboard, it does the same thing. It doesn't wait for me to type the rest of the number (10449 for example) it just executes the code based on the first item in the dropdown that starts with 1. When I remove the sendkey command from the code it lets me type the whole number but then I have to press Enter or Tab to get the form to open.
If I could find the setting that turns off choosing an item in the drop-down with the keyboard it would work.
This thread has helped me to clarify the problem at least. For some reason, when the barcode reader puts the asset number into the field, the combo box is using the first character to choose the first item that starts with that character. Most of the barcodes (asset numbers) start with the number 1. When the barcode is scanned, as soon as that field gets the number 1 it chooses that first item.
If I don't use the barcode scanner and just type the number 1 in the field with the keyboard, it does the same thing. It doesn't wait for me to type the rest of the number (10449 for example) it just executes the code based on the first item in the dropdown that starts with 1. When I remove the sendkey command from the code it lets me type the whole number but then I have to press Enter or Tab to get the form to open.