jimmy the lost said:
when i tried open my file in microsoft access 2007 , there is any error
appear on the screen " Your microsoft office access database or project
contains a missing or broken reference to the file "clsTrayicon.ocx" version
3.0 .
Are you using that OCX? If not then remove it and compile to see if
it is being used anywhere.
Ctrl+G will take you into the Debug/Immediate window. Then click on
Tools on the menu bar and References.
Sub ViewReferenceDetails()
Dim ref As Reference
For Each ref In Access.References
Debug.Print ref.Name & " - " & ref.Major & "." & ref.Minor & "
- " & ref.FullPath
Next ref
End Sub
For a very detailed page on reference problems see
http://www.accessmvp.com/djsteele/AccessReferenceErrors.html
Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog -
http://msmvps.com/blogs/access/