06. november 2005 - 12:32Der er
6 kommentarer og 1 løsning
ActiveX in Access form
In a form I use the ActiveX control MonthView5 for picking dates. I have made a runtime version of my db and finds that the MonthView5 does not work on a pc that I have installed it on. I need info on what to install, where to find it and presumably instruction how to install it. Another question is how I make the calendar to show the present month when opening the form.
Hi nyholm If you look in the References (Tools+References menu) you should see which file is used for the ActiveX control. This file must be placed in the same place on other PC's and it must also be registered. You can use RegSvr32.exe tp register the control, which normally can be found in C:\WINDOWS\system32 folder.
Normally if the control is included in your setup kit then it will get registered automatically when you install your application.
Hi Terry! Do You mean by this that if mscomct2.ocx, wich is the the file MonthView is refering to, is installed in System32 folder the ActiveX will automatically get registered when my db, that has MonthVieu in a form, is installed? If that is correct, how can I install the file when just the location for the db can be set in the installation instruction?
Hi again! I have found the file that has the installationinfo for mscomct2.ocx. If I rightclick on this file I can choose Install and then the ocx file is installed. Since I only can choose to install the two files to the same destination as the db, I need to figer out how to install the ocx file. On opening the db, could I have a command when the start form is opening that checks if C:\Windows\System32 contains the ocx file and if not give a install command to the installation file? The name of the installationfile is just mscomct2.
Once again, I dont know enough about the new setup kit for Access 2003, but in 97 you could add all the files you liked and also the destination. Actually if I remember correctly, when you run the setup it found out which references there were and included those itself. Í would be very surprised if this is not possible in Access 2003.
If we go back to a previous question you had on th esetup kit, then remember that there is a flag which you use to overwrite older files. So you could do the same for your ocx. But still it needs registering. Placing it in system32 doesnt do this automatically, unless of course the setup-kit does it.
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.