FAQ TConnector
Microsoft Access - Licensing with Autoexec Macro
Microsoft Access - Licensing with Autoexec Macro
Below we show you how to license at startup of the database. Create a new Module with the following function (in Microsoft VBA Editor):
Public Function LicenseTConnector() Dim TC As New TCONNECTOR2Lib.TConnector2 TC.LicenseMe "Mem: Your Licensee Name", eLicKindDeveloper, 1, "Your Key", eLicProdStd Set TC = Nothing End Function
Create a new Macro named "Autoexec" with the following settings:
Action = RunCode Functionname = LicenseTConnector()
Use this method with Developer licenses only (this may not work with Site licenses or Single licenses). 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. With Site licenses you should temporarily disable UAC and then license the product manually in the license dialog. Distribution of the license via REG file (export/import) is possible on request.