473,513 Members | 2,409 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Barcode Question

Tom
Using VB6, I want to read barcode data into an Access 2000 DB. What do you
get when you read a barcode? Text or numbers. How do you define the field
were the data would be stored?

Thanks in advance,

Tom D.
Jul 17 '05 #1
4 10219
Tom wrote:
Using VB6, I want to read barcode data into an Access 2000 DB. What do you
get when you read a barcode? Text or numbers. How do you define the field
were the data would be stored?

Thanks in advance,

Tom D.

Barcode is just a font. When you read a barcode, you'll get a string.
Whoever printed the barcode decides what is printed. There are many
different barcode fonts, so the "printer" and the "reader" must agree
which one to use.

Best regards
Jul 17 '05 #2
Tom wrote:
Using VB6, I want to read barcode data into an Access 2000 DB. What do you
Serial port or keyboard wedge scanner? The means
of handling them are slightly different.

If it's serial, you'll have to get familiar with
the MSCOMM object.
get when you read a barcode? Text or numbers.
ASCII values of characters. You have to convert
them to chars in a string. If you have a wedge,
try this experiment:

Set up a test form; put a text box on it.
set the form's keypreview property = true.

Run, scan a code and see if you get *any* input,
even gibberish. If you do, then you can monitor
the actual input values using the form_keypressed
event:

private sub form1_keypressed(keyascii as integer, etc...)
text1=text1 + " " + val(keyascii)
'text1 = text1 + chr(keyascii)
keyascii=0
end sub

Consult an ASCII chart to see if all your barcode
chars appeared - there *might* be one or two extras!

The first value *might be a 'prefix' character,
rather than an actual digit in the barcode.

The last value *might be a 'postfix' character,
rather than an actual digit in the barcode.

It depends on the brand of scanner...
How do you define the field
were the data would be stored?
Once you get them read in, that's up to you.
I'd recommend string...

Thanks in advance,

Tom D.

Jul 17 '05 #3

"Tom" <an******@bellsouth.net> wrote in message
news:I3******************@bignews6.bellsouth.net.. .
Using VB6, I want to read barcode data into an Access 2000 DB. What do you get when you read a barcode? <snip>


Depends on what barcode it is. There are many types of barcodes (UPC, Code 3
of 9, etc.) Each has its own range of "characters" and "numbers".
Jul 17 '05 #4
The output data from a bar code scanner is just a simple text string
(either character or numeric data depending on what is encoded in the
bar code).
How you get the data into your VB6 application depends on what type of
bar code scanner you have.
Normally when you store bar code data into a database, you would
define the field as a string field.

Most bar code readers are available with one of two output options.
The first option is called "Keyboard Wedge" output where you unplug
your keyboard, plug the bar code reader into the keyboard port on your
PC and then plug your keyboard into the bar code reader. This
arrangement makes the bar code reader appear as it it were simply a
second keyboard. Your original keyboard continues to work as normal
however when you read a bar code, the data encoded in the bar code
appears to any application running on your PC as if it were typed in.

The other possible output option is to get a bar code reader with an
RS232 or "Serial" interface. With these types of bar code readers, you
connect the reader to an available serial port on the back of your PC.
You would then need to either use the MSComm ActiveX control that
comes with VB6 to input the data or use a program called a "Software
Wedge" to take the data from the bar code reader and feed it to the
application where you want the data to go. The disadvantage to this
approach is that it is a little more complex however you gain much
more control over how and where your data ends up when you read a bar
code. With a Software Wedge, you can control exactly where the data
goes in the target application and you can also perform all sorts of
modifications on the data before it is sent to the application.

TAL Tehchnologies sells a product called WinWedge which is a Software
Wedge for Windows.
Visit: http://www.taltech.com/products/winwedge.html
for more information about WinWedge.

TAL also sells a very high quality line of bar code laser scanners at
very reasonable prices. All their scanners are available with either
the keyboard wedge output or RS232 output. For scanners see:
http://www.taltech.com/products/bc_reader.html

This web site is also an extremely good place to obtain information
about bar coding in general be sure to look in the Resources section
of the site for a bar code tutorial.

For printing bar codes from Access, you would be best off using a bar
code ActiveX control like the one fromTAL Technologies at the
following URL:
http://www.taltech.com/products/activex_barcodes.html
If you need to print bar codes, I would recommend that you download
the demo of the TAL Bar Code ActiveX control from the above URL and
take a look at the sample Access database that is provide with the
demo.

You can also use bar code fonts to do the job and many are available
for free on the web however you will definitely want to test your bar
codes by printing them to the particular printer that you will be
using and then scanning them with the bar code scanner that you
purchase. Fonts are notorius for producing very poor quality bar codes
that are difficult to read. They also offer very little flexibility in
size. Three things that you should always do when using bar code fonts
are to test, test, and test again.

On Wed, 24 Nov 2004 17:39:53 -0500, "Tom" <an******@bellsouth.net>
wrote:
Using VB6, I want to read barcode data into an Access 2000 DB. What do you
get when you read a barcode? Text or numbers. How do you define the field
were the data would be stored?

Thanks in advance,

Tom D.


Jul 17 '05 #5

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

Similar topics

9
5954
by: Krishna Sagiraju | last post by:
Hai, I gotta decode a barcode from an image ( ppm, bmp, or jpg). I realize the first milestone would be to recognize a barcode with in the image: I took a small window (say 80X80 pixels) and if...
3
5284
by: Tom Turner | last post by:
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...
1
6170
by: Darren Coleman | last post by:
I need help with 2 keyboard/input questions 1. How do i caputre all keypress events for my application/form? 2. How do I determine which keyboard sent the keypress? What i'm doing is using a...
4
2113
by: | last post by:
Hi all, we have a need to barcode encode and display a record identifier (number) both in html in the browser and through fdf in adobe acrobat in realtime. Is this possible? Can anyone make any...
3
6272
by: Mika M | last post by:
Hi all! I have made an application for printing simple barcode labels using PrintDocument object, and it's working fine. Barcode printer that I use is attached to the computer, and this...
5
5419
by: neilphan | last post by:
Hi all, I have an application that uses input from a barcode reader via a USB port. My application works fine only if the application HAS FOCUS. If the user opens up another application (not...
2
1692
by: Camelduke | last post by:
My company is considering the development of a mobile device that integrates 2D barcode scanning among its features. However, our engineering team is stymied as they believe that we are unable...
7
4203
by: jim | last post by:
I need to have 2 simple barcode reader applications finished by midnight tonight. I have never written any barcode reader software and need any help that you may be able to offer. I do not know...
7
4820
by: divyac | last post by:
I am doing an inventory control project and i want to create barcodes for the products in addition to the product details in a form.The form values should be submitted to the database to retrieve for...
0
7267
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7553
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7120
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7542
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5697
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3247
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3235
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1609
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
466
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.