dale_j1992
Registered User.
- Local time
- Today, 05:47
- Joined
- Sep 23, 2016
- Messages
- 26
hello i asked this question before but from the answers I received i dont think i explained it very well. i have a table with the following headers Id, Barcode, part, Size, Date, Operator name. i have then set this up on a standard form, on opening the focus is set too the barcode field, the operator scans a barcode and this fills this field, the size field will be typed in depending on what size the operator measure the part at, the date is set as an autodate, and the operator name is automatically added from the user who is logged in. So coming back too the part field, i am trying to figure out a way of autofilling the part field depending on what barcode is scanned in the first field, the barcode is 12 digits long, the first 7 digits are part number for the batch of parts, the last 5 digits are the parts unique numer for example barcode:123456700056 this would be part 1234567 and the 56th part of this type, i have been prompted by another user to use the left() function to highlight only the first 7 digits that i require but i am stuck in writing a code that allows me for example, if the first 7 digits of the barcode are 1234567 then autofill field part as crankshaft or if the first 7 digits are 7654321 then autofill field part as camshaft. i hope someone can point me in the right direction with this i am fairly new too access and im pulling my hair out haha, many thanks in advance