Barcodes on reports

G

Guest

hi,
set up a text box on the report. set the font property to
3 of 9 barcode.(it's at the top of the font list)
you did not say how you are populating the report so i am
assuming that you are using a query. set the text box's
control source to the data bit in the query that you want
bar coded.
 
T

Treebeard

I don't see that selection under the "Font Name" property.

I'm using Access 2000, perhaps it doesn't have this functionality?
Or am I doing something wrong?
 
F

Fred Boer

PMFJI...

Dear Treebeard:

You might not have that font installed on your system. I'm not positive, but
I do not think it is one of the default fonts installed with Windows. The
following link from Tony Toews gives you some more information about
barcodes in Access applications, and includes links to websites where you
can download free 3 of 9 fonts. Download the font, install it, and it should
be available to Access and show up on the font list...

http://www.granite.ab.ca/access/barcode.htm

HTH
Fred Boer
 
B

Bob Lounsbury

The other posters are correct... you need to install a Code 39 barcode
font. The other detail is that you need to add asterisks before and
after your data; the asterisk prints as a special start/stop barcode
character. If the scanner does not see that character at each end of
the barcode it will be unhappy and not speak to you.

Once you set up your text field, the Control Source property might
look something like this:

[PartNumber]

Modify it so it looks like this:

= "*" & [PartNumber] & "*"

Use a Code 39 font to print this field and you should have a scannable
barcode. Here is an Application Note on the subject:

http://www.makebarcode.com/info/appnote/app_014.html

Bob Lounsbury
The Barcode Software Center
www.makebarcode.com
 
A

Alek Szymanski

Treebeard,

There are two basic ways of generating barcodes in Access:
1. Barcode font. The easiest font to use is Code 39. The only
requirement for Code 39 is that you use an asterisk "*" before and
after the data you wish to encode. So, for example, to encode 12345
into a barcode with that value, you can simply type *12345* into the
text box on your report. You also need to make sure the Font property
of the text box is set to the corresponding Code 39 font.
One more thing to keep in mind is that if you wish to encode a space
character, you will need to substitute it with (usually) an underscore
"_".
So, if you wish to encode "123 ABC", you'll have to change it to
"*123_ABC*"

If your barcodes come from a table (the most likely scenario), you can
set up a simple function to encode the data:

Public Function FormatCode39(d As String)
FormatCode39 = "*" & Replace(d, " ", "_") & "*"
End Function

.... so in the ControlSource property of the text box, you enter:
=FormatCode39([Barcode])

That's all there is to it.
Of course, if you need fonts other than Code 39, it becomes more
complicated. You may need to calculate the check digit(s) and do
other calculations.

2. The second, and easier way to add barcodes to Access is by using an
ActiveX Control (a plug-in). You simply go to Insert->ActiveX
Control..., and drop the control onto the report or form.
Then, you set the ControlSource of the barcode to the appropriate
field in your database. There is no need to insert start/stop
characters nor any other calculations/substitutions. You can also
choose the symbology, such as Code 39, Code 128, UPC, EAN 128, etc.
Most barcode ActiveX controls support several different symbologies.

With an ActiveX control, you can also control many other properties of
the barcode, such as bar width, height, type of border, color, fonts,
orientation, text position, and more.

If you'd like to try either our Code 39 fonts or the barcode ActiveX
control, please have a look at our download page:

http://www.barcodewiz.com/demo.asp

Both downloads include several examples of use in Access (in reports
as well as forms). Also, the help file includes step-by-step
instructions for setting everything up.

If you have any questions, please don't hesitate to ask.

Alek Szymanski
http://www.barcodewiz.com
 
T

Treebeard

thanks
Alek Szymanski said:
Treebeard,

There are two basic ways of generating barcodes in Access:
1. Barcode font. The easiest font to use is Code 39. The only
requirement for Code 39 is that you use an asterisk "*" before and
after the data you wish to encode. So, for example, to encode 12345
into a barcode with that value, you can simply type *12345* into the
text box on your report. You also need to make sure the Font property
of the text box is set to the corresponding Code 39 font.
One more thing to keep in mind is that if you wish to encode a space
character, you will need to substitute it with (usually) an underscore
"_".
So, if you wish to encode "123 ABC", you'll have to change it to
"*123_ABC*"

If your barcodes come from a table (the most likely scenario), you can
set up a simple function to encode the data:

Public Function FormatCode39(d As String)
FormatCode39 = "*" & Replace(d, " ", "_") & "*"
End Function

... so in the ControlSource property of the text box, you enter:
=FormatCode39([Barcode])

That's all there is to it.
Of course, if you need fonts other than Code 39, it becomes more
complicated. You may need to calculate the check digit(s) and do
other calculations.

2. The second, and easier way to add barcodes to Access is by using an
ActiveX Control (a plug-in). You simply go to Insert->ActiveX
Control..., and drop the control onto the report or form.
Then, you set the ControlSource of the barcode to the appropriate
field in your database. There is no need to insert start/stop
characters nor any other calculations/substitutions. You can also
choose the symbology, such as Code 39, Code 128, UPC, EAN 128, etc.
Most barcode ActiveX controls support several different symbologies.

With an ActiveX control, you can also control many other properties of
the barcode, such as bar width, height, type of border, color, fonts,
orientation, text position, and more.

If you'd like to try either our Code 39 fonts or the barcode ActiveX
control, please have a look at our download page:

http://www.barcodewiz.com/demo.asp

Both downloads include several examples of use in Access (in reports
as well as forms). Also, the help file includes step-by-step
instructions for setting everything up.

If you have any questions, please don't hesitate to ask.

Alek Szymanski
http://www.barcodewiz.com


"Treebeard" <[email protected]> wrote in message
What's the best way to generate barcodes on access reports?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top