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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pass the Control Object not its Value

Status
Not open for further replies.

MajP

Technical User
Aug 27, 2005
9,382
US
I have a custom class that I want to pass a Combo Box control as an object, not the value in the combo box. If I do this

Set fcFilterCombo.FilterComboBox = Me.cmboFilter

Me.cmboFilter evaluates to its value and I get an "Object Required" error. I saw the answer a while back, but can not remember how to do it. Thanks in advance.
 
And would a global variable to hold the control not suit?
 
Thanks Gents,
Neither solution would work, but I found that it is mainly a strange debug message. In fact the above does save the object and not the value.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top