472,800 Members | 1,285 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,800 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 11533
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: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth

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.