Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Please Read; Which Object Libray is control from?

Status
Not open for further replies.

cyberbiker

Programmer
Mar 16, 2001
431
US
I am working on an app where a previous programmer has done something that I find strange.
He added a reference to microsoft forms 2.0 object library so that he would be able to use the combobox
from VBA with the auto complete feature.
I have changed all the comboboxes to the DBcombo box. When I attempt to remove the microsoft forms 2.0 object library, I recieve the error that something is still in use.
Per his comments, all he used from the microsoft forms 2.0 object library was the combobox control, but this is obviously in error.
I suspect that he inadvertantly chose a text box or label or something from the microsoft forms 2.0 object library instead of the proper control So far I have not been able to find a way to determine which control was actually used.
Does anybody have any idea how to find out if a text box,label etc is from the standard VB component or from the microsoft forms 2.0 object library?

Terry (cyberbiker)
 
Terry -

Have you tried opening each form in notepad. You will see at the top any references the form uses other than std controls included with the VB runtimme libraries. If you have a lot of forms you could write a quick app that would read all .frm files and consolidate the info into some readable format.

Let me know if this helps

Don
 
Thanks a lot Don, I never thought of that for some reason.
I looked at the forms where he had most of the comboboxes by opening notepad, since logically, the mistake should have occured on one of those forms, and found the problem on the second form that I looked at.


Terry (cyberbiker)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top