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 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