473,805 Members | 2,191 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Sharing database creating error messages for missing or broken ref to mscomct2.ocx

58 New Member
I placed a database on the server and all of the other users are receiving the error message:

Your Microsoft Access database or project contains a missing or broken reference to the file 'mscomct2.ocx' version 2.0

This is a virtual network and we are all running our own copies of Access.

I did use several ActiveX controls. Can anyone tell me what the other users need to do? Is there a download they can perform?

Thank you!
Mar 29 '07 #1
4 11616
MMcCarthy
14,534 Recognized Expert Moderator MVP
I placed a database on the server and all of the other users are receiving the error message:

Your Microsoft Access database or project contains a missing or broken reference to the file 'mscomct2.ocx' version 2.0

This is a virtual network and we are all running our own copies of Access.

I did use several ActiveX controls. Can anyone tell me what the other users need to do? Is there a download they can perform?

Thank you!
You need to open the VBA editor on each machine and see if any of the libraries are marked as missing on the references list. It's possible these users don't have the libraries you used available on their lists.

Mary
Mar 29 '07 #2
ADezii
8,834 Recognized Expert Expert
I placed a database on the server and all of the other users are receiving the error message:

Your Microsoft Access database or project contains a missing or broken reference to the file 'mscomct2.ocx' version 2.0

This is a virtual network and we are all running our own copies of Access.

I did use several ActiveX controls. Can anyone tell me what the other users need to do? Is there a download they can perform?

Thank you!
Here is a code snippet that you can utilize to Reference References (light humor). At least it will give you some status information pertaining to the References on each machine:
Expand|Select|Wrap|Line Numbers
  1. Dim MyRef As Reference
  2.  
  3. For Each MyRef In Application.References
  4.   Debug.Print "Reference Name: " & MyRef.Name
  5.   Debug.Print "Is the Reference Built-In: " & IIf(MyRef.BuiltIn = True, "Yes", "No")
  6.   Debug.Print "Full Path of reference: " & MyRef.FullPath
  7.   Debug.Print "Version Number: " & MyRef.Major & "." & MyRef.Minor
  8.   Debug.Print "Kind of Reference: " & MyRef.Kind
  9.   Debug.Print "Is the Reference Broken?: " & IIf(MyRef.IsBroken = True, "Broken", "Intact")
  10.   Debug.Print vbCrLf
  11. Next MyRef
Typical Output:

Reference Name: VBA
Is the Reference Built-In: Yes
Full Path of reference: C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6 \VBE6.DLL
Version Number: 4.0
Kind of Reference: 0
Is the Reference Broken?: Intact


Reference Name: Access
Is the Reference Built-In: Yes
Full Path of reference: C:\program files\microsoft office\OFFICE11 \msacc.olb
Version Number: 9.0
Kind of Reference: 0
Is the Reference Broken?: Intact


Reference Name: stdole
Is the Reference Built-In: No
Full Path of reference: C:\WINDOWS\syst em32\stdole2.tl b
Version Number: 2.0
Kind of Reference: 0
Is the Reference Broken?: Intact


Reference Name: DAO
Is the Reference Built-In: No
Full Path of reference: C:\Program Files\Common Files\Microsoft Shared\DAO\dao3 60.dll
Version Number: 5.0
Kind of Reference: 0
Is the Reference Broken?: Intact


Reference Name: ADODB
Is the Reference Built-In: No
Full Path of reference: C:\Program Files\Common Files\System\AD O\msado21.tlb
Version Number: 2.1
Kind of Reference: 0
Is the Reference Broken?: Intact


Reference Name: MSACAL
Is the Reference Built-In: No
Full Path of reference: C:\PROGRA~1\MIC ROS~4\OFFICE11\ MSCAL.OCX
Version Number: 7.0
Kind of Reference: 0
Is the Reference Broken?: Intact


Reference Name: Office
Is the Reference Built-In: No
Full Path of reference: C:\Program Files\Common Files\Microsoft Shared\office11 \mso.dll
Version Number: 2.3
Kind of Reference: 0
Is the Reference Broken?: Intact


Reference Name: ComCtl2
Is the Reference Built-In: No
Full Path of reference: C:\WINDOWS\syst em32\COMCT232.O CX
Version Number: 1.1
Kind of Reference: 0
Is the Reference Broken?: Intact
Mar 30 '07 #3
apartain
58 New Member
Here is a code snippet that you can utilize to Reference References (light humor). At least it will give you some status information pertaining to the References on each machine:
Expand|Select|Wrap|Line Numbers
  1. Dim MyRef As Reference
  2.  
  3. For Each MyRef In Application.References
  4.   Debug.Print "Reference Name: " & MyRef.Name
  5.   Debug.Print "Is the Reference Built-In: " & IIf(MyRef.BuiltIn = True, "Yes", "No")
  6.   Debug.Print "Full Path of reference: " & MyRef.FullPath
  7.   Debug.Print "Version Number: " & MyRef.Major & "." & MyRef.Minor
  8.   Debug.Print "Kind of Reference: " & MyRef.Kind
  9.   Debug.Print "Is the Reference Broken?: " & IIf(MyRef.IsBroken = True, "Broken", "Intact")
  10.   Debug.Print vbCrLf
  11. Next MyRef
Typical Output:

Reference Name: VBA
Is the Reference Built-In: Yes
Full Path of reference: C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6 \VBE6.DLL
Version Number: 4.0
Kind of Reference: 0
Is the Reference Broken?: Intact


Reference Name: Access
Is the Reference Built-In: Yes
Full Path of reference: C:\program files\microsoft office\OFFICE11 \msacc.olb
Version Number: 9.0
Kind of Reference: 0
Is the Reference Broken?: Intact


Reference Name: stdole
Is the Reference Built-In: No
Full Path of reference: C:\WINDOWS\syst em32\stdole2.tl b
Version Number: 2.0
Kind of Reference: 0
Is the Reference Broken?: Intact


Reference Name: DAO
Is the Reference Built-In: No
Full Path of reference: C:\Program Files\Common Files\Microsoft Shared\DAO\dao3 60.dll
Version Number: 5.0
Kind of Reference: 0
Is the Reference Broken?: Intact


Reference Name: ADODB
Is the Reference Built-In: No
Full Path of reference: C:\Program Files\Common Files\System\AD O\msado21.tlb
Version Number: 2.1
Kind of Reference: 0
Is the Reference Broken?: Intact


Reference Name: MSACAL
Is the Reference Built-In: No
Full Path of reference: C:\PROGRA~1\MIC ROS~4\OFFICE11\ MSCAL.OCX
Version Number: 7.0
Kind of Reference: 0
Is the Reference Broken?: Intact


Reference Name: Office
Is the Reference Built-In: No
Full Path of reference: C:\Program Files\Common Files\Microsoft Shared\office11 \mso.dll
Version Number: 2.3
Kind of Reference: 0
Is the Reference Broken?: Intact


Reference Name: ComCtl2
Is the Reference Built-In: No
Full Path of reference: C:\WINDOWS\syst em32\COMCT232.O CX
Version Number: 1.1
Kind of Reference: 0
Is the Reference Broken?: Intact

1) Being a VBA newbie, where do I put this in the VB Editor?

2) Where and when will it run? I am assuming upon opening the database?

3) If the references are not intact, how do I proceed?

4) Is this something that is recommended any time I create a shared database?

Thanks!
Mar 30 '07 #4
ADezii
8,834 Recognized Expert Expert
1) Being a VBA newbie, where do I put this in the VB Editor?

2) Where and when will it run? I am assuming upon opening the database?

3) If the references are not intact, how do I proceed?

4) Is this something that is recommended any time I create a shared database?

Thanks!
__1. You can place it in a Standard Code Module as a Public Sub-Procedure:
Expand|Select|Wrap|Line Numbers
  1. Public Sub AnalyzeReferences()
  2. Dim MyRef As Reference
  3.  
  4. For Each MyRef In Application.References
  5.   Debug.Print "Reference Name: " & MyRef.Name
  6.   Debug.Print "Is the Reference Built-In: " & IIf(MyRef.BuiltIn = True, "Yes", "No")
  7.   Debug.Print "Full Path of reference: " & MyRef.FullPath
  8.   Debug.Print "Version Number: " & MyRef.Major & "." & MyRef.Minor
  9.   Debug.Print "Kind of Reference: " & MyRef.Kind
  10.   Debug.Print "Is the Reference Broken?: " & IIf(MyRef.IsBroken = True, "Broken", "Intact")
  11.   Debug.Print vbCrLf
  12. Next MyRef
  13. End Sub
__2. It can be run anywhere in your Application at any time simply by calling it:
Expand|Select|Wrap|Line Numbers
  1. Call AnalyzeReferences
__3. From the Code Window ==> Tools ==> References. Find the missing Reference, it will be preceeded by MISSING:. Select the Reference ==> Browse ==> Navigate to the Folder indicated on the Full Path of Reference line on your Printout for the specific Reference ==> Open.
__4, It will not hurt to run this Procedure, but it is only recommended when you are experiencing potential Missing Reference(s) problem(s).
Mar 30 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
1896
by: Plex | last post by:
Ok, I had a more barebones version of this script working, but when I tried to put it in with my larger script, it broke. I think the problem lies somewhere in the uploading, but I'm not sure of this. Anyway, here's what I have: index.php --------------------------------- <? include("header.inc"); if (!isset($_SESSION) or ($_SESSION == "Guest")) {
1
27360
by: jenny | last post by:
Hi, I have a java socket program running on AIX 4.3.3.0 platform. It opens a socket and sends data to our customer over a leased fractional T1 line. The line is always connected. However, periodically, I see "java.IO.Exception: There is no process to read data written to a pipe" error message in my log file. Can anybody tell me in what cases this error message could occur? The other strange thing is that our customer would report...
3
4183
by: Mark Metzner | last post by:
We currently have custom error logging setup on all of our websites. We have IIS setup to redirect to our custom 500-100.asp page which logs the error to a database and then redirects to a friendly error message page. Last week we were working on a pretty troublesome error on our intranet site and noticed huge discrepencies between the IIS Log and our error log database. On this particular day for this particular site, the IIS Log has...
6
5916
by: varlagas | last post by:
We disabled the antivirus software but the problem persists. Any clues? Many thanks in advance! Panagiotis Varlagas ======================================================================= 2005-07-28-10.39.02.015001 Instance:DB2 Node:000 PID:1568(db2syscs.exe) TID:2440 Appid:0A00153A.C90B.050728083720
1
2726
by: Harlin | last post by:
Hi, I am trying to set up the database for LMS on a Linux box. This box is running SLES 9. I am trying to run the following scripts as user: db2inst1 : ../cr_db2db_audit.sh and I receive the following error messages(snipped for brevity because they are repeating errors):
3
10299
by: Martin B | last post by:
Hallo! I'm working with C# .NET 2.0, implementing Client/Server Applications which are connecting via Network to SQL-Server or Oracle Databases. To stay independent from the underlaying Database I use System.Data.Common.DBConnection and .DBCommand. How can I keep aware from connection losses (network not availeable, db-server not available...)? Are there any strategies to detect this broken connections, and how can I
7
3322
by: i | last post by:
#include<stdio.h> #include<conio.h> #include<process.h> #include<string.h> char ch; int w; int n,m; //void main(); char check(int n,int m,char ch); void cash(int n,int m,char ch);
13
4744
by: problem. | last post by:
#include <stdio.h> #include <stdlib.h> int main(void) { int a, b; float result = 0.0f; char symbol = '\0'; int loop = 0;
3
5503
by: AccessBeetle | last post by:
I get the following error when I open the access database. Your Microsoft Office Access database or project contains a missing or broken reference to the file npctrl.dll version 2.0 Anybody knows what is it? and how to clear this error? Thanks
0
9718
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9596
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10614
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10363
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10109
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7649
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5544
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4327
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3847
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.