Barcodes.mdb v1.0  -  creates bar-code 39 on MS-Access reports.
This barcode symbology is also called bar-code 3of9 and LOGMARS.
Barcodes are created on reports by using Access Basic command to
actually draw the barcodes as rectangular boxes. This code is 
submitted as FreeWare and can be freely distributed with your
application royalty-free.  barcodes.txt contains documentation.

Barcodes.mdb consists of the followinf objects:

	Table	tbl_BarCodes

	Form	frm_Credits

	Report	rpt_BarCode

	Module	mod_BarCode_Generator


The Table contains sample barcode data to be printed.  It is
only referenced by the Report.  The Form is a credit to the
author and may be deleted.  The Report contains a two simple
text-boxes, both bound to the barcode field from the Table.
One is used as a template for the barcode itself and is set 
to invisible.  The other is the readable barcode contents
and is set to be visible.  The report is setup to print in
two columns of four each for a total of eight records.  The
table only contains seven records for this example. Finally,
the Module contains the code to calculate and draw strips. 

The secret to printing the barcode on the Report lies in its
Code-Behind-Form (CBF). From the design view, select the menu
item View, Code... and page down until you see some code. It
makes a function call...

Sub Detail1_Print (Cancel As Integer, PrintCount As Integer)

    Result = MD_Barcode39(BarCode, Me)

End Sub

The BarCode refers to the field name in the Report. The Me refers
to the Report itself.  The function grabs the control source value
from the field along with the x,y position, height, and width to
create a barcode that fits right on top of it.  This is why this
text-box must be set to invisible. The hard work is handled by the
function to lookup the code for each character, adding an asteric
to the beginning and end for the stop/start character codes, and 
then drawing rectangular boxes, alternating white and black to 
create those vertical bars we are all familar with.

FAQ: Frequently Asked Questions

Q: My favorite sites for more barcode information?
A: BarCode1: http://www.adams1.com/pub/russadam/wnew.html

Q: My favarite site for MS-Access information?
A: newsgroup: comp.databases.ms-access

Q: My favorite download site?
A: Your in it! SimTel...

Q: My favorite source for barcode scanners?
A: Compatible Reader Systems 1-800-217-4307

Q: My favorite barcode scanner?
A: Model NT2500 PC Wedge $189. It works great!

Q: Support?
A: Contact me via email: microdoc@ix.netcom.com

Q: My favorite color?
A: Blue... no Red!

Have fun behind bars!

James Mercanti, MicroDoctor, MCP/SE

email: microdoc@ix.netcom.com

\\//







table

	




Author: James Mercanti
email:  microdoc@ix.netcom.com


