Native Barcode Generator for Microsoft Access

 
Home Products Demos Support Integration Barcode FAQ Order Now Contact Us

 

Home:  Products:  Microsoft Access Implementation Guide:  Native Barcode for Microsoft Access:

Native Barcode Generator for Microsoft Access
Patent Pending

A license is required for each computer this software is installed on;
this software may only be used according to the License Agreement.
Demo versions of this software may be used for evaluation purposes only

Demo Version Notice:
 
This is a demo version of the Native Barcode Generator, which may only be used for evaluation purposes. The demo version is fully functional, with the following 2 exceptions: (1) a pop-up notice will appear intermittently and (2) the VBA module is password protected. To purchase the fully functional version with access to the Native Barcode Generator module, please visit http://idautomation.com/access/native/index.html#Order.

INDEX:

Product Overview and Features

The Native Barcode Generator is VBA code that may be easily inserted into Access databases to create bar code images on reports and forms. Once installed in a database, no other components or fonts need to be installed to create barcodes; it is the complete barcode generator that stays with the database, even when distributed.

Additional Features Include:

The Native Barcode Generator currently supports the following symbologies:

The following symbologies may be created upon request with the purchase of the Unlimited Developer License:

This package does not support UPCA, UPCE, EAN13 or EAN8 barcodes because of the required OCR text characters that must appear below this barcode type. If these barcode symbologies are required, the UPC/EAN Barcode Font Advantage is available as a separate purchase only.

Barcode Integration Tutorial

Installing the Native Barcode Generator is a fairly easy process. If problems are encountered with this tutorial, IDAutomation recommends referring to the sample database included in the package.

  1. Extract the files from the Native Barcode Generator package.
  2. Open the database the barcode is needed for.
  3. Choose Tools - Macro - Visual Basic Editor.
  4. From the Visual Basic Editor, choose File - Import file and select the IDAutomation_Native_Barcode_VBA.bas file from the files extracted in Step 1.
    Embedding the Native Barcode VBA
  5. Choose File - Save and then close the Visual Basic Editor. All functions of the Native Barcode Generator are now embedded in the database.
  6. Open the report in Design Mode.
  7. Insert a text box in the details section of the form, and increase the height and width so it will be able to contain the bar-code.
    Prepare the text box for the bar code
  8. Right-click on the text box and choose Properties.
  9. In the Properties panel, change the font to "Arial". The only exception is when PDF417 or Postnet is used, the "Courier New" font must be selected.
  10. In the Properties panel, change font size to "3" points. Because the point size is smaller then what is available in the drop down menu, it must be manually entered.
    Select the correct font and size
  11. In the Properties panel, change the Control Source to the formula or function for the barcode type that is needed; for example:
    =IDAutomation_Nat_C128([Table1.Field1])
    would create a code 128 barcode from Field1 in Table1.
  12. Enter parameters to modify the height and other options of the barcode; for example:
    =IDAutomation_Nat_C39([Table1.Field1],8,3)
    changes the height to 8 and the N Dimension to 3 in Code 39.
  13. If it is necessary to change the X dimension or barcode width, highlight the object and change the font point size. The point size must be small, generally 3 or 4 points. Because the drop down box does not contain these small sizes, they must be manually typed in. The font selected for the object must be "Arial" or "Times New Roman" for all barcode types except for Postnet and PDF417, which requires the "Courier New" font.
     
    Font Point Size Approximate X Dimension
     2  08 Mils
     3  12 Mils
     4  16 Mils
     5  20 Mils
  14. Run the report to verify barcodes are being properly created. Ensure the object has been sized properly to contain the entire barcode. If the width of the symbol is larger then the object, several white lines will appear.
    Truncated barcode object
  15. It is normal to view some distortion of the symbol on the screen because of low screen resolution. However, the barcodes should be accurate when printed. Light horizontal lines may appear in the printed symbol under certain conditions. However, these horizontal lines will not decrease symbol accuracy or cause scanning errors because scanners decode the vertical lines in the symbol. If it is desired to eliminate the lines completely, IDAutomation suggests implementation with Barcode Fonts or ActiveX Controls.
    access report barcode result

Legal Notice: This product is Patent Pending. Reports containing this object may only be distributed outside the licensed organization with the purchase of a Developer License to the Native Barcode Generator.

 Functions of the Native Barcode Generator

All the functions listed below are preceded with IDAutomation_Nat_. For all functions below, the data type returned is a string and the input type for DataToEncode is a string.

Function Notes
C128(DataToEncode, BarHeight, ApplyTilde) This is a "Code 128 Auto" function that will automatically encode any data from ASCII 1 to ASCII 127. It will automatically switch to character set C to encode numbers as necessary. To encode alpha-numeric UCC/EAN-128, ASCII 202 or character Ê is entered as the FNC1 before each AI. When any barcode begins with the FNC1, it automatically starts in Set C as required.
For example, the UCC number of (8100)712345(21)12WH5678 should be entered as a formula of:
IDAutomation_Uni_C128 ("Ê8100712345Ê2112WH5678",6,TRUE)
or
IDAutomation_Uni_C128 ("Ê" &
[Table1.DataField1] & "Ê" & [Table1.DataField2], 8, TRUE)
More information about AI's and UCC/EAN-128 is located here.

If ApplyTilde is set to True, the tilde will be processed. ApplyTilde is False by default in this function.

C128HR(DataToEncode, BarHeight, ApplyTilde) If creating Code 128 barcodes which need the text formatted, use this function. It is generally only used to format the text for UCC/EAN barcodes according to IDAutomation's Code128 Barcode FAQ. For example:
IDAutomation_C128HR ("Ê" & "8100712345" & "Ê" & "2112345678"
, 8, TRUE )

If ApplyTilde is set to True, the tilde will be processed. ApplyTilde is True by default in this function.

C128A(DataToEncode, BarHeight) Formats output to set A of Code-128. Use caution with this option because any lowercase character creates a function. Use the letter "i" for a tab and "m" for a return. For most purposes, it is better to use the C128() function instead of this one.
C128B(DataToEncode, BarHeight) Formats output to Code-128, character set B. For most purposes, it is better to use the C128() function instead of this one.
C128C(DataToEncode, BarHeight) This code128 function "interleaves" even numbers into pairs for high density. An even number of digits is required. For most purposes, it is better to use the C128() function instead of this one.
C39(DataToEncode, BarHeight, N_Dimension, IncludeCheckDigit) A MOD 43 checksum will be calculated if IncludeCheckDigit is true. For example: IDAutomation_Uni_C39 ("123456789", 8, 3, TRUE )
Codabar(DataToEncode, BarHeight, N_Dimension, StartChar, StopChar) StartChar and StopChar are also required as the start and stop characters. Valid start and stop characters are A, B, C and D.
I2of5(DataToEncode, BarHeight, N_Dimension, IncludeCheckDigit) An even number of digits is required. A MOD 10 checksum will be calculated if IncludeCheckDigit is true.
MSI(DataToEncode, BarHeight, N_Dimension, IncludeCheckDigit) Formats output for bar-coding in the MSI/Plessey symbology. A MOD 10 checksum will be calculated if IncludeCheckDigit is true.
Postnet(DataToEncode, IncludeCheckDigit) DataToEncode is a single string of Zip, Zip + 4 or Zip + 4 + Delivery Point. A MOD 10 checksum will be calculated if IncludeCheckDigit is true.
UCC128(DataToEncode, BarHeight) This symbology option automatically encodes the FNC1 character in set C as required for UCC-128 barcodes. All functions of ApplyTilde are enabled in this function for calculating the required MOD 10 check digit and cannot be disabled, for example:
IDAutomation_Uni_C128 ("00000123455555555558"
& "~m19" ) For more information, please visit the UCC/EAN FAQ.
MODU10(DataToEncode) A MOD 10 check digit is returned. This is useful in calculating check digits for UCC/EAN 128 barcodes where a MOD check digit is needed.
UCC/EAN-128 Barcode Examples for encoding UCC/EAN-128 Barcodes:
USPS EAN128 The following formula will create USPS_EAN128 in Code 128:
IDAutomation_Uni_C128 ("Ê" & "912312214123442441134" & "~m19"
, 8, TRUE )
Where the number of 912312214123442441134 may be replaced with a data field, for example:
IDAutomation_Uni_C128 ("Ê" &
[Table1.DataField1] & "~m19", 8, TRUE )
This number encoded is made up of the following: 2 digit service code + 9 digit customer ID + 8 digit sequential package ID + MOD 10 check digit. For more information, refer to the USPS portion of the Code 128 FAQ and the UCC/EAN portion of the Code128 Barcode FAQ.
SCC14 The following formula will create SCC14 in Code 128:
IDAutomation_Uni_C128 ("Ê" & "013001234567890" & "~m13"
, 8, TRUE )
For more information, refer to the UCC/EAN portion of IDAutomation's Code128 Barcode FAQ.
SSCC18 The following formula will create SCC18 in Code 128:
IDAutomation_Uni_C128 ("Ê" & "0000801234999999999" & "~m17"
, 8, TRUE )
For more information, refer to the UCC/EAN portion of IDAutomation's Code128 Barcode FAQ.

Description of the parts of the functions:

Technical Support

Common Problems and Solutions:

Other Barcode Software Products

IDAutomation has many other products to offer for barcoding purposes including:

.

Copyright © 2001-2006 IDAutomation.com, Inc. IDAutomation and BizFonts are registered trademarks of IDAutomation.com, Inc. All other trademarks mentioned are the property of their respective owners.

Over 70% of Fortune 100 companies use IDAutomation's products to automate their businesses.