This issue can occur if you have made design changes to an object containing an ActiveX control on a machine that is using the runtime version of Total Access Components.
This means that if you have put a form or report that contains one of the ActiveX controls into Design view (and you are only using the runtime version of the product on this machine, not the full version), the license for the ActiveX control will be lost when you save and/or close the object. Please note that this is the result of the functionality of Microsoft Access and how it works with runtime licenses of 3rd party ActiveX controls like ours. To resolve this issue, there are two options:
- Reinstall (or copy over) a fresh copy of your master database (that still has the ActiveX license installed) to this runtime machine.
- Reset the ActiveX control license in that database using a machine that has the full version of Total Access Components installed (this is typically your development machine). The can be done by simply reinserting the ActiveX control on a form or report in that database using your development machine; and then copying the database back to the machine running the Total Access Components runtime.
Turn off Track Name Auto Correct when relinking tables
If you have the Track Name AutoCorrect Option for the database enabled at runtime and then you relink tables, this causes the form containing the ActiveX control to be opened by MS Access in design view and saved. This, in turn, causes the ActiveX control to lose its license because the license is not available in runtime.
To work-around this issue, please ensure that the Track Name AutoCorrect options are turned off prior to relinking your tables (manually or programmatically).
Not supported outside of Microsoft Access
If you are trying to use this control in an environment outside of Microsoft Access, this error may occur. This control is only supported in the MS Access environment, and should not be used in any other type of application.
Be sure that the Total Access Components runtime is installed
This error can occur if you are attempting to run your database on a machine that does not have either the full version or the runtime version of the Total Access Components installed. When you distribute your database, please be sure sure that you have the runtime installed. For more information regarding the runtime distribution, please review the manual or help file.
Use the FormLoad event instead of the FormOpen event
If you have code in your form open event that uses the ActiveX control, please move it to the form load event. MS Access may not have fully instantiated ActiveX controls when the FormOpen Event fires. Moving code that uses an ActiveX control to the FormLoad event is more reliable.
Check for broken references
Please ensure that you do not have any broken references when you distribute your database. To check and fix this, open any module. Then go to Tools, References and look for any reference that is listed as "MISSING". Also, ensure that the reference to our control is listed. If it is not, you will need to reset this reference. You can do so by removing the missing reference and using the browse button to locate the .ocx control (tacomp.ocx). This file is found in the 32-bit Windows system folder (the actual path may vary by your version of Windows and/or whether it is a 32-bit or 64-bit operating system).
- On 64-bit Windows systems, the path is: C:\Windows\SysWOW64\tacomp.ocx
- On 32-bit Windows systems, the path is: C:\Windows\System32\tacomp.ocx