Access

Navigation:  Office 2007 & 2010 >

Access

Previous pageReturn to chapter overviewNext page

1.Open MW6_DataMatrix_ActiveX.accdb, select "Sample DataMatrix_ActiveX Report".

Access_1

 

2.If you see "Security Warning, Certain content in the database has been disabled", click on "Options" to open up "Microsoft Office Security Options" dialog, toggle on "Enable this content" check box.

 

3.Click on "Design View", click "Design" > "Insert ActiveX Control".

Access_2

 

 

4.Insert a MW6 DataMatrix ActiveX control into the report.

Access_3

 

5.Change its properties to meet your application requirements, our DataMatrix ActiveX supports the data binding so you can bind a field in a database to the control and generate a barcode for each data record automatically, there is an arrow on the right side of the "Control Source" property, click on the arrow, a list opens with all fields, select the field you want for the control.

Access_4

 

 

6.If the string contains some Unicode texts (Japanese, Chinese, Korean, etc), use "Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)" to apply the special treatments to those Unicode characters. Click "Database Tools" > "Visual Basic" to open up Visual Basic Editor.

Access_7

 

 

7.Change the code in the sub "Detail_Print( ... )" to meet your application requirements.

Access_8

 

 

8.Click on "Preview" to view the barcodes.

Access_5