|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Forms - Barcode question in form
I have table that has these fields
[ID],[SalesDate],[ProdNumber],[SerialNumber],[EndingNumber] Each product has barcode number and there are two kinds of barcode one with 8 (12345678) digits and one with 9 (123456789) digits what I like to do is scan each product by barcode reader which will read the barcode as text and then I like to code as this 8 digit barcde = 12345678 the first three digits are the [ProdNumber] and digit 4 and 5 are [SerialNumber] and the last three as [EndingNumber]. 9 digit barcode = 123456789 the first four digits are the [ProdNumber] and digit 5 and 6 are [SerialNumber] and the last three as [EndingNumber]. Also I designed form for data entry which has all the fields in the table and unbound field for barcode reader. I don’t want to store the barcode reader (I’m not sure if I should) but I want to scan each item and then separate the barcode as above. I attached file here. Thanks |
|
#2
|
|||
|
|||
|
Don't see an attachment to your post. To parse the barcode strings utilize Left, Right and Mid functions. This should be fairly easy since you know the positions of the values you want to extract. For instance, just to give you a start:
Code:
intLen = Len(strBarCode) strProdNum = Left(strBarCode, Iif(intLen = 8, 3, 4)) strSerNum = Mid(strBarCode, Iif(intLen=8, 4, 5), 2) strEndNum = Right(strBarCode, 3) Last edited by June7 : July 4th, 2009 at 03:25 PM. |
|
#3
|
|||
|
|||
|
Quote:
How do I attch file in here |
|
#4
|
|||
|
|||
|
Just learned this. You may not have been a member long enough yet. At end of postings after Quick Reply box is dropdown box 'Posting Rules'. This will show your permissions. If you have Attachment permission then when you create a post or reply, scroll down the screen and find Manage Attachments button.
Last edited by June7 : July 4th, 2009 at 04:45 PM. |
![]() |
| Viewing: ASP Free Forums > Database > Microsoft Access Help > Forms - Barcode question in form |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|