Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot Register comdlg32.ocx For Use In Access VBA 1

Status
Not open for further replies.

mattbuxton

Programmer
Mar 28, 2001
1
GB
I have written a fairly complex Access database, and in one of my modules I use common dialogue controls. Hence to distribute this package throughout the PCs that will use it, I have written an install routine using Microsoft SMS Installer. Within this routine, I copy accross comdlg32.ocx and use the auto-register function provided in SMS Installer, which appears to be successful.

However, when I get to the module which uses comdlg32.ocx, I get the message "Object doesn`t support this property or method", as if the ocx file hasn`t been registered.

Can any one suggest a solution to this ?
 
Have you tried stepping through the code (as it runs) to see which line this error is occuring? I would try this before anything else.

It would seem to me if the control was not registered properly, you would get quite a different message.

Gary
gwinn7
 
I'm not sure there is a way to find specific threads in here? But thread181-46484 is one that dealt with this topic extensively. Some key words maybe you could look for would be RegSvc32.Exe, COMDLG32.OCX.

Hope this helps!

Tail

 
I had the same exact problems . . .

What I did was:

1 Register the control with the following procudure

A. Goto Start
B. Goto Run
C. Type in "regsvr32 comdlg32.ocx"

2 If it fails check for the "comdlg32.cox" file in System folder. If it ain't there put there all should be well

-Doug

 
I too had this same prob. I replaced the ocx with code, which works very nicely. If you want I'll dig out the reference.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top