Avatar billede nyholm Novice
06. november 2005 - 12:32 Der 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.
Avatar billede terry Ekspert
06. november 2005 - 13:02 #1
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.
Avatar billede nyholm Novice
06. november 2005 - 21:55 #2
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?
Avatar billede nyholm Novice
06. november 2005 - 23:05 #3
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.
Avatar billede terry Ekspert
07. november 2005 - 08:10 #4
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.
Avatar billede nyholm Novice
08. november 2005 - 20:10 #5
OK Terry, I accept Your answer.
Avatar billede terry Ekspert
08. november 2005 - 20:53 #6
Thanks Denis, did it help at all?
Avatar billede terry Ekspert
08. november 2005 - 20:53 #7
!
Avatar billede Ny bruger Nybegynder

Din løsning...

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.

Loading billede Opret Preview
Kategori
Dyk ned i databasernes verden på et af vores praksisnære Access-kurser

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester