| Home: Products: IDAutomation's Barcode Tutorial for Microsoft® Access®: |
IDAutomation's Barcode Tutorial
|
|
Using the Bar Code ActiveX Plug-in: |
After
purchasing or
downloading the
plug-in (which is called the ActiveX Control), it may be dragged, dropped and
sized on a form such as a report. In a Microsoft Access report in design mode,
choose insert - ActiveX control. Select the control that was installed starting
with "IDAutomation," and drop it on the form. After this, size the control as
necessary. To change the properties of the control such as barcode height and
symbology type, right click on the control and choose properties. To bind the
control to a data source, enter the table and field or formula in the control
source field as in the example above. The table and field MUST be entered
as in the example, do not just enter the field. The proper barcode will show up
after the report is saved and run. The barcode will be created from the data
in the control source field.
When using the ActiveX control, tabs and returns can be encoded by inserting =([TestData.Data] & Chr(9) & [TestData.Zip]) in the control source field where TestData.Data points to the table and field that contains the data to encode first, then Chr(9) will encode the tab and TestData.Zip will be the second field.

|
Using Bar Code Fonts in Microsoft Access: |
It should be noted that if not a technical user or programmer, try to use the self-checking barcode fonts instead. Self-checking fonts (such as Code 39 and Codabar) have checking code built-in so that calculation of check characters is not required. Check characters are used in more dense symbologies so the barcode scanner can verify it read the barcode correctly. However, to help technical users integrate barcodes into their applications, IDAutomation provides font automation tools such as the Microsoft Office Macros to automatically format the start, stop and check characters to the barcode fonts. For information on these tools, please review their font automation tools site.
Self-checking fonts are easy to use in Microsoft Access as well as other applications, and may be entered directly from the keyboard. All barcodes require a start and stop character and these must also be included in the barcode. Without the start and stop character in the barcode, the scanner does not know where the barcode starts or ends.
For example, to create a barcode that encodes the data "1234ABCD" with the Code 39 Font, use the following formula =("!" & [Table.Field] & "!") in the control source field where Table.Field points to the table and field that contains the data to encode.
Tabs and returns may be added with Code 39 fonts (in extended39 mode) between fields from a Microsoft Access report by inserting =("!" & [Table.Field] & "!") in the control source field where Table.Field points to the table and field that contains the data to encode. The following Microsoft Access formula places a tab function (in extended39) between fields: =("!"&[DataField1] & "$I" & [DataField2] & "!")
Below is an example of the above formula in a text field on a report:

|
Tutorial for Using VBA Barcode Macro Functions in Microsoft Access: |
IDAutomation's macros will generate check digits, add the start and stop characters and format the return string for one of their barcode fonts. The macros may be easily integrated into an application for automation purposes and do not require programming skills - they are easy enough for intermediate and advanced users of Microsoft Access. The macros consist of a VBA module with many barcode symbology functions. The macros are free to use as long as they are being used with one of IDAutomation's licensed barcode fonts. They are compatible with Microsoft Office 97, 2000, XP and 2003 running on Windows or Macintosh systems. The unique encoding in our fonts and macros allow cross-platform support between Macintosh and Windows systems in most countries. For some double byte language settings such as Chinese, Korean and Japanese languages, the IDAutomation Universal Barcode Font Advantage™ is a better choice when used with the Universal Font VBA functions.
After
downloading and extracting the files, open the sample Microsoft Access database
provided. The sample database contains one table, some sample reports and one
module. The module contains the custom VBA code, functions and macros. Please
refer to this sample database for assistance creating barcodes.
How to Create a Barcode in a Microsoft Access Report:

For information about other methods of barcoding in Microsoft Access, please refer to IDAutomation's Microsoft Access Barcode FAQ and Tutorial.
When using Code 128 or one of the 2D barcode font macros provided with PDF417 Fonts or the DataMatrix Fonts, tabs and returns may be encoded by inserting =Code128([TestData.Data] & Chr(9) & [TestData.NumberData],0) in the control source field where TestData.Data refers to the table and field that contains the data to encode, Chr(9) encodes a tab function and TestData.NumberData is the second field. The following example is from Microsoft Access 2003:

|
Linking to Microsoft Access with the Barcode Label Software: |
IDAutomation Barcode Label Software is an easy-to-use WYSIWYG bar code label printing software application that prints barcodes, text and graphics on standard laser and inkjet printers, as well as thermal transfer printers.
This software can link to columns in Microsoft Access as a data source for a text or barcode object, which allows printing of labels from data in Microsoft Access.

|
|
|
Product Quick Links: [Barcode Fonts | Font Tools | Components | Label Software | Scanners | Printers | RFID | Product Index] |
Copyright
© 2000-2006 IDAutomation.com, Inc. IDAutomation and BizFonts are registered
trademarks of IDAutomation.com, Inc.. Microsoft and the Office logo are
trademarks or registered trademarks of Microsoft Corporation in the United
States and/or other countries. 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. |