Solved

Where does COMDLG32.OCX come from?

Posted on 2002-05-02
6
809 Views
Last Modified: 2010-08-05
Just loaded Access 2000 on this workstation, and the UCase() and Trim() functions didn't work.

When I Compile the code, the message says "Compile Error - can't find project or Library", and the UCase is highlighted (same for Trim() when I remove the UCase).

Microsoft Common Dialog control (COMDLG32.OCX) is MISSING in References, so I copied it (from another computer) to my Sustem32 directory and registered it using regsvr32.

My question is, why didn't it get installed with Access?  Where does it come from? (i mean, what would I have to have installed for it to have been put there without me having to do it manually?)

0
Comment
Question by:DavidWare
  • 3
  • 2
6 Comments
 
LVL 5

Accepted Solution

by:
bob_online earned 50 total points
ID: 6986903
COMDLG32.OCX is part of your windows installation, not access.  Maybe win 2000 or XP uses something else.
0
 
LVL 54

Expert Comment

by:nico5038
ID: 6986989
Hi,

Just open some VBA code (e.g. module) and select Tools/References.
Unchek any library having a name starting with "MISSING".
Replace (if necessary) with other version, but often just uncheck will do the trick.

Nic;o)
0
 

Author Comment

by:DavidWare
ID: 6987127
Oh, it's from Windows?  Well I wonder why I didn't get it.  I did get comdlg32.dll, but not the ocx.
Thank you, bob and Nico.
0
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 

Author Comment

by:DavidWare
ID: 6987158
Nico,
Unchecking the reference seems to have solved a different problem that I was having.
I have posted some points for that help.
http://www.experts-exchange.com/msaccess/Q.20296442.html
Thanks!
0
 

Author Comment

by:DavidWare
ID: 6987172
But I don't understand why unchecking a reference solves a problem.  Isn't the reference checked for a reason?  Like if the DAO 3.6 Object library was missing, unchecking the MISSING reference wouldn't make the DAO code work, so why does unchecking the Common Dialog control reference eliminate the problem?
(like, my car won't run if I don't put gas in the tank, but if I just take the gas tank out of the car, then the car will run just fine???)
0
 
LVL 5

Expert Comment

by:bob_online
ID: 6987383
If it was referenced, but not being used, it would cause the problem and unchecking it would resolve it.  However, if something is looking for it, it still won't work.
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question