postnet.mdb v1.0 - create PostNet & FIM using MS-Access reports.
Barcodes are created on envelopes 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.  postnet.txt contains documentation.

PostNet.mdb consists of the followinf objects:

	Table	tbl_MailingList

	Form	frm_Credits

	Report	rpt_MailingEnvelope

	Module	mod_PostNet_Generator


The Table contains sample mailing 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 an address
block. It also has a PostNetCode text box set to invisible.
The PostNetCode extracts the numeric value from the Zipcode
and street address by using the function MD_PostNetCode().
The Module contains the code to calculate and draw strips,
calculate the PostNet code with Zip+4 and Delivery Point,
and calculate the Correction Characters. A FIM code is also
printed. It is hardcoded to a value of "A", "B", "C", or blank
and is used generally for bulk mail and business reply mail.
It is not usually used in mail-merges and has been included
for use in other printing applications.

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_PostFIM(PostFimCode, Me)
    Result = MD_PostNet(PostNetCode, Me)

End Sub

PostNetCode 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, after calculating
the delivery point barcode (DPBC) and correction character, and 
then drawing rectangular boxes, some full, others half-height to 
create those picket-fence type barcodes 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: 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

\\//


