jcaptchaos2
Well-known Member
- Joined
- Sep 24, 2002
- Messages
- 1,032
- Office Version
- 365
- Platform
- Windows
I am a novice when it comes to Access so need some help, I had created a tracking system in excel but have been task to change it to access, I have a work order that I am scanning and in excel I am using this code
I have set up a form in access and want to do the same thing, scan a bar code and it goes into 3 different text boxes. Is there code like above that would do that for me and if so could you give me an idea of what it would be and where I would place it?
Code:
Private Sub txtitemno_BeforeUpdate(ByVal Cancel As MSForms.ReturnBoolean)
Static abort As Boolean
If abort Then abort = False: Exit Sub
txtshop.Text = Mid(txtitemno.Text, 6, 5)
txtopno.Text = Mid(txtitemno.Text, 11)
abort = True
txtitemno.Text = Mid(txtitemno.Text, 1, 5)
End Sub
I have set up a form in access and want to do the same thing, scan a bar code and it goes into 3 different text boxes. Is there code like above that would do that for me and if so could you give me an idea of what it would be and where I would place it?