473,386 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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

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 11569
MMcCarthy
14,534 Expert Mod 8TB
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 Expert 8TB
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\system32\stdole2.tlb
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\dao360.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\ADO\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\MICROS~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\system32\COMCT232.OCX
Version Number: 1.1
Kind of Reference: 0
Is the Reference Broken?: Intact
Mar 30 '07 #3
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\system32\stdole2.tlb
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\dao360.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\ADO\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\MICROS~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\system32\COMCT232.OCX
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 Expert 8TB
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
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...
1
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,...
3
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...
6
by: varlagas | last post by:
We disabled the antivirus software but the problem persists. Any clues? Many thanks in advance! Panagiotis Varlagas ======================================================================= ...
1
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...
3
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...
7
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
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
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...

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.