Solved

Where does COMDLG32.OCX come from?

Posted on 2002-05-02
6
814 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
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 

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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

820 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