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

Could not get the Column property. ComboBox

Status
Not open for further replies.

andols

Programmer
Aug 30, 2005
12
SE
Hi,

I have a problem with a ComboBox, I fill the listbox with data (two cloumns, name and identifier) and the user shall choose one of the post in the Listbox.

But if the user print something else and press GO I wold like to be able to pick up that and exit the sub.

Some thing like this
Code:
If cboOrt.Column(2) Is Nothing Then
 MsgBox "Någonting gick snett, orten hittades inte"
 Exit Sub
 End If
But when I come to that line I get
Code:
<Could not get the Column property. Invalid property array index.
I dont want to make the ComboBoxnote "writeable" because the user should be able to write and the listbox "MatchEntry".

Thanx
Anders Olsson
 
I'm unfamiliar with any of the functionality that you describe in the ComboBox that I'm familiar with. Are you sure you're talking about a VB6 ComboBox?

HTH

Bob
 
No,

I am sorry. I posted in wrong forum. I am working in VBA.

Thanx for your response,

Anders
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top