473,231 Members | 1,592 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,231 software developers and data experts.

How to store/use info from barcode scan?

Here's the background on my situation. The question follows ---

We have 600 units of mail going from our business to various Post
Offices every morning. Every unit is accompanied by a paper
Verification form which is signed and dated by a postal employee
and returned to our office as proof of delivery.

The Verification contains a 24 character barcode which holds a
non-unique 5 digit postal zip code at pos 5-9, and a unique 10-
digit control number at pos 14-23. The other chars are not
essential. As the units leave our office, we will scan the
Verifications to record the barcode info and a date stamp. When
the drivers return the Verifications the next day, we will scan
them again and date stamp the return.

Any time the barcode is scanned, the onscreen form must display
the 10-digit control number, zip code, and post office
name/address associated with that zip code. Printed reports will
show this info also.

One table (PostalInfo) will contain records with Zip, Name,
Address, City, of 50 or more post offices. This table will change
very little once entered. Another table (ScannedInfo) will
contain the scanned barcode information, 600 new records each
day.

Here's the crux: Should I define fields for zip and control
numbers in ScannedInfo, then associate string functions with them
to parse the data from the barcode field? If so, how does that
data get permanently written to those fields, replacing the
function?

Or can I just store the unparsed barcode string, and parse it as
needed in queries or forms? I think that I need to have the
parsed zip and control numbers stored in their own fields in
ScannedInfo so I can set a relationship to the zip code in the
Postal table, and speed searches and queries. This database will
grow by 3000 records weekly, and at least two months history
needs to be available.

Any suggestions will be read with gratitude by this newbie.
Nov 12 '05 #1
3 5259
Ok,
I'm by no means an expert at this but the way I would do this it to
create a query that splits the scanned barcode down into the relevant
lengths you need. Some like this.....

SELECT [verification form].[scanned barcode], Mid([verification
form].[scanned barcode],1,5) AS zip, Mid([verification form].[scanned
barcode],6,10) AS [Unique number], Mid([verification form].[scanned
barcode],17,3) AS [extra numbers]
FROM [verification form];

Save that query whose sole function is to split the scanned code into useful
bit of data.
Create another table which will hold the scanned barcode number and then the
other fields that you want to split the barcode into e.g., zip, unique
number etc. Then run an append query which will put all the data (that
doesn't exist already) from the query into the new table. Something like
this would work.....

INSERT INTO [split barcode] ( [scanned barcode], zip, [Unique number],
[extra numbers] )
SELECT [decode barcode].[scanned barcode], [decode barcode].zip, [decode
barcode].[Unique number], [decode barcode].[extra numbers]
FROM [decode barcode] LEFT JOIN [split barcode] ON [decode barcode].[scanned
barcode] = [split barcode].[scanned barcode]
WHERE ((([split barcode].[scanned barcode]) Is Null));

As the entire barcode number is being imported to the new table, that could
act as a link to the new table of split data for any queries you need.

Like I said, I'm no expert but that's the way I would go about it!!! ;-)

Mark

"Tom Turner" <me*@privacy.net> wrote in message
news:Xn*************************@216.196.97.133...
Here's the background on my situation. The question follows ---

We have 600 units of mail going from our business to various Post
Offices every morning. Every unit is accompanied by a paper
Verification form which is signed and dated by a postal employee
and returned to our office as proof of delivery.

The Verification contains a 24 character barcode which holds a
non-unique 5 digit postal zip code at pos 5-9, and a unique 10-
digit control number at pos 14-23. The other chars are not
essential. As the units leave our office, we will scan the
Verifications to record the barcode info and a date stamp. When
the drivers return the Verifications the next day, we will scan
them again and date stamp the return.

Any time the barcode is scanned, the onscreen form must display
the 10-digit control number, zip code, and post office
name/address associated with that zip code. Printed reports will
show this info also.

One table (PostalInfo) will contain records with Zip, Name,
Address, City, of 50 or more post offices. This table will change
very little once entered. Another table (ScannedInfo) will
contain the scanned barcode information, 600 new records each
day.

Here's the crux: Should I define fields for zip and control
numbers in ScannedInfo, then associate string functions with them
to parse the data from the barcode field? If so, how does that
data get permanently written to those fields, replacing the
function?

Or can I just store the unparsed barcode string, and parse it as
needed in queries or forms? I think that I need to have the
parsed zip and control numbers stored in their own fields in
ScannedInfo so I can set a relationship to the zip code in the
Postal table, and speed searches and queries. This database will
grow by 3000 records weekly, and at least two months history
needs to be available.

Any suggestions will be read with gratitude by this newbie.

Nov 12 '05 #2
Pachydermitis typed

Access can't handle this kind of application.


Now, why not?

--
Bas Cost Budde

Nov 12 '05 #3
Mark-

I like your idea of populating a separate table with information
queried from the barcode table. I'm going to pursue it and see what
happens.

Thanks for your time and suggestion.

-Tom

Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: CHANGE username to westes | last post by:
What are the most popular, and well supported, libraries of drivers for bar code scanners that include a Visual Basic and C/C++ API? My requirements are: - Must allow an application to be...
5
by: Rajani | last post by:
I have tickets printed with barcode. When i scan that code is placed in a text box of my form. How can i read from the scanner and put it in a specific text box? Or i directly want to insert...
2
by: Dean | last post by:
I want to integrate a simple USB POS barcode reader into my VB .NET app. Only need a scan a few products per minute, nothing major. I'm not really sure where to start, is there an SDK I need, does...
8
by: DS | last post by:
Does anyone know anything about barcodes in Access. I don't want to create them in Access. I merely want to scan whats already been created. I need to scan Liquor bottles. I have the scanner...
5
by: sameer | last post by:
Hi, I have a client who wants to use barcode scanners with web pages( internet website). They want to scan the barcode no off a label and want this no to go straight to the focused text field on...
1
by: Bruce D | last post by:
I'm researching a VB .NET project that will have two functions: 1 - scan images using TWAIN drivers of scanner 2 - read barcode of that scanned image I've been researching many companies and was...
4
by: madunix | last post by:
I am in the process to create an online form using PHP with DB Oracle or MySQL, this form which consist of 2x parts personal data and finance data, and it will be filled by the users, once the...
1
by: GNelson | last post by:
My client is a baseball league who started a Kids Club which has membership cards that have a barcode and their own specific number to monitor the number of times that the KidsClub members come to...
7
by: phill86 | last post by:
Hi, I have a form with a number of combo box's the first combo box contains a barcode that is associated with user information then the next box contains a barcode that is associated with task...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.