I am having 3 editable textboxes and 1 only viewable textbox. Whenever you fill in these 3 textboxes it will combine these 3 textboxes and put a - between the first and second box and a _ between second and third box. Example: 00000-00_0000
Now I also have a QR code scanner which is supposed to automatically fill in the only viewable textbox. Whenever the only viewable textbox has been filled by the scanner, I want it to automatically seperate this information into the 3 textboxes. First 5 numbers are in the first textbox. the 7th and 8th number will be the middle textbox and the last 4 numbers will be the last textbox. Now I want to be able to combine these 2 things. Being able to scan and being able to fill it in by hand.
Code of the QR scanner to seperate the values, what I've tried: Set(first5,Left(BarcodeScanner1.Value,5)); Set(middle2,Right(Left(BarcodeScanner1.Value,8),2)); Set(last4,Right(BarcodeScanner1.Value,4));