Missing or Broken Reference

matthewR
5StarLounger
Posts: 627
Joined: 03 Feb 2010, 15:02

Missing or Broken Reference

Post by matthewR »

I just got 2010 and one of my databases has a missing or broken reference. The message is Mscomct2.ocx version 2.0

When I go into references there is - Missing: Microsoft windows common controls - 2 6.0 (SP4)

I unclicked the check mark but when I close and open database that missing or broken reference message appears.

I clicked on debug and compiled and get and error:
Private Sub Form_Current()
'Set Locked property based on whether user is entering a new record
Dim fLocked As Boolean
fLocked = Not Me.NewRecord
'[Field].Locked = fLocked

It highlights NewRecord and I get a compile error: Method or data member not found

User avatar
HansV
Administrator
Posts: 78527
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Missing or Broken Reference

Post by HansV »

Open the Tools | References dialog again to see if there are any remaining missing references.
Make sure that you click OK in the References dialog after clearing the check box of missing references. It probably won't work if you close the dialog by clicking the close button (the 'x') in the upper right corner.
Best wishes,
Hans

matthewR
5StarLounger
Posts: 627
Joined: 03 Feb 2010, 15:02

Re: Missing or Broken Reference

Post by matthewR »

I don't see any other missing references. I uncheck the one that says missing and say OK and close the database and reopen and the missing reference is still there.


I opened some forms etc and now it is ok. I don't get that missing reference error.