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!

How to Define MS Forms 2.0 combobox as a parameter variable??

Status
Not open for further replies.

MargaretK

Programmer
Nov 21, 2000
8
US
I am using the Microsoft Forms 2.0 combobox (FM20.DLL) in a VB client/server app, because it is multi-column.

I have code to "autofill" a regular VB combobox. As the users types into the combobox, it searches for matching text in the dropdown list.

I tried to use the "autofill" code with the MS Forms 2.0 combobox, but get a type mismatch, because the combobox is passed as a parameter.
Call ComboBoxChange(cboMarketNbr)

Public Sub ComboBoxChange(lComboBox As ComboBox)

I'm not sure how to define the parameter of ComboBoxChange properly.

Public Sub ComboBoxChange(lComboBox As ???)

Any ideas?

Thanks!!

Margaret Knapp
Visual Basic Programmer
 
Some additional information for anyone who thinks they might help...

Microsoft Forms 2.0 Object Library can be found under Project Components, if you have FM20.DLL (I think it comes with MS office, and some other MS apps).

Margaret Knapp
Visual Basic Programmer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top