473,387 Members | 3,781 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,387 software developers and data experts.

How to track down and fix "missing or broken reference"?

sueb
379 256MB
I'm running Access 2002, and some of my users are running 2007. (The following errors, once accepted do not seem to impede any functioning in the database.)

They are experiencing a new behavior when they open the front end I send them, and that is the popup of several error messages on the order of:

...missing or broken reference to the file 'gwdpk.ocx'

and a complaint about the On Timer property I have in a "dummy" form that loads and manages activity. The code called from that property (Timer Interval is set to 1000) is:

Expand|Select|Wrap|Line Numbers
  1. Sub Form_Timer()
  2.     ' IDLEMINUTES determines how much idle time to wait for before
  3.     ' running the IdleTimeDetected subroutine.
  4.     Const IDLEMINUTES = 5
  5.  
  6.     Static PrevControlName As String
  7.     Static PrevFormName As String
  8.     Static ExpiredTime
  9.  
  10.     Dim ActiveFormName As String
  11.     Dim ActiveControlName As String
  12.     Dim ExpiredMinutes
  13.  
  14.     On Error Resume Next
  15.  
  16.     ' Check for activity only after the work day is over
  17.     If Time > #5:00:00 PM# Then
  18.  
  19.         ' Get the active form and control name.
  20.         ActiveFormName = Screen.ActiveForm.Name
  21.         If Err Then
  22.             ActiveFormName = "No Active Form"
  23.             Err = 0
  24.         End If
  25.  
  26.         ActiveControlName = Screen.ActiveControl.Name
  27.         If Err Then
  28.             ActiveControlName = "No Active Control"
  29.             Err = 0
  30.         End If
  31.  
  32.         ' Record the current active names and reset ExpiredTime if:
  33.         '    1. They have not been recorded yet (code is running
  34.         '       for the first time).
  35.         '    2. The previous names are different than the current ones
  36.         '       (the user has done something different during the timer
  37.         '        interval).
  38.         If (PrevControlName = "") Or (PrevFormName = "") _
  39.             Or (ActiveFormName <> PrevFormName) _
  40.             Or (ActiveControlName <> PrevControlName) Then
  41.             PrevControlName = ActiveControlName
  42.             PrevFormName = ActiveFormName
  43.             ExpiredTime = 0
  44.         Else
  45.             ' ...otherwise the user was idle during the time interval, so
  46.             ' increment the total expired time.
  47.             ExpiredTime = ExpiredTime + Me.TimerInterval
  48.         End If
  49.  
  50.         ' Does the total expired time exceed the IDLEMINUTES?
  51.         ExpiredMinutes = (ExpiredTime / 1000) / 60
  52.         If ExpiredMinutes >= IDLEMINUTES Then
  53.             ' ...if so, then reset the expired time to zero...
  54.             ExpiredTime = 0
  55.             ' ...and call the IdleTimeDetected subroutine.
  56.             IdleTimeDetected ExpiredMinutes
  57.         End If
  58.  
  59.     End If
  60.  
  61. End Sub
  62.  
Any idea what's going on and how I can fix it? I don't have access to 2007 for my development/testing (no 2002 users get these errors), so I'm sort of in the dark with this.
Jan 25 '11 #1
7 4381
Oralloy
988 Expert 512MB
sueb,

Sounds like a class module that comes with 2002 isn't shipped with, or isn't installed by default in 2007.

On your 2002 system, in the VBA window, look under the Tools|References and see if anything is tagged for 'gwdpk.ocx'. If so, take a moment and go to a 2007 system to see if it is even there.

If it's there, turn it on and load the application. Are you getting the same error?

This link might help....ActiveX-Error-please-explain

Cheers!
Oralloy
Jan 25 '11 #2
sueb
379 256MB
In my References list, that name doesn't appear.
Jan 25 '11 #3
Oralloy
988 Expert 512MB
sueb,

Drat!

I had a similar problem a number of years ago, and I seem to recall that there's a way to have Access automatically reference required libraries and components (so long as they're on the computer running the Access). My problem is that I do not remember the details of the solution.

Perhaps one of our real Gurus can help you further.

Luck!
Jan 25 '11 #4
sueb
379 256MB
I ended up making copies of all the .ocx and .dll files on my machine, and having my users put them into the correct directory on each of their machines (C:\Novell and C:\Novell\Groupwise). I still don't understand why this was not a problem in the past.

This seems like an extremely lame fix to a mysterious problem.
Feb 11 '11 #5
sueb
379 256MB
I ended up making copies of all the .ocx and .dll files on my machine, and having my users put them into the correct directory on each of their machines (C:\Novell and C:\Novell\Groupwise). I still don't understand why this was not a problem in the past.

This seems like an extremely lame fix to a mysterious problem.
Feb 11 '11 #6
Oralloy
988 Expert 512MB
sue,

Ouch! That's the hard way to fix the problem.

At this point, I'm hoping that one of our reall Access gurus can kick in and help, as I don't know why, but I've met the problem before.

Cheers!
Feb 11 '11 #7
sueb
379 256MB
You're right--it certainly is the "hard way to fix the problem"! I know for certain it's not the correct one. I can only hope someone can give me the right answer.
Feb 11 '11 #8

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

Similar topics

4
by: Bill Dee | last post by:
I use XML comments around most of my class libraries public property and methods, for example: /// <summary> /// blah blah /// </summary> However I have a few dozen public constants as well...
2
by: Robin S. | last post by:
I don't have the "references" selection in my "tools" menu. Obviously this is kind of important. I have "Always show full menus" checked. Program has been updated to SP3. Any ideas as to why...
3
by: n_o_s_p_a__m | last post by:
someone please advise
5
by: Trevor Andrew | last post by:
Hi There I am having some difficulty referencing Web Services. I am using Visual Studio .NET 2003, with the .NET Framework 1.1, and trying to write a VB.NET Windows Application that consumes an...
1
by: SrDhUS | last post by:
I get the following error when I try to add a web reference using Web Reference Dialog (VS .Net 2003) Error "The proxy settings on this computer are not configured correctly for web discovery."...
5
by: Matthew.DelVecchio | last post by:
hello, i am working w/ a partner company's webservice, which they wrote in java. using a provided webservice.wsdl file, i am able to compile it into a proxy class, webservice.dll. i can add...
5
by: Mike Logan | last post by:
I used WSDL.exe to generate a client side web proxy for a web service, called the web service, got the results but an array returned by the web service is not in the results. However if I use...
1
by: BobPaul | last post by:
I'm following code out of a howto book and this is really bugging me. This header file was created by VStudio 6.0 when I did a "Right Click: Add Member Function" CLine is a class I wrote (per the...
2
by: manontheedge | last post by:
I'm trying to pass a pointer of a class into another class' constructor. I keep getting the error "missing default parameter", here's a hopefully simplified example of what I'm trying to do... ...
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:
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
0
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,...

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.