FAQ TBarCode OCX
Microsoft Access - Licensing with Autoexec Macro
Microsoft Access - Licensing with Autoexec Macro
Below we show you how to license at startup of the database (sample for TBarCode OCX V11). Create a new Module with the following function (in Microsoft VBA Editor):
Public Function LicenseTBarCode() Dim TB As New TBarCode11 TB.LicenseMe "Mem:Licensee", eLicKindDeveloper, 1, "Key", TBarCode11Lib.eLicProd1D Set TB = Nothing End Function
Create a new Macro named "Autoexec" with the following settings:
Action = RunCode Function Name = LicenseTBarCode()
Don't forget to include a reference to the type library of the ActiveX® Control in the menu Tools - References (otherwise enumerations cannot be used). We recommend to password protect your VBA code in the project property window.