I have a combo box with values aa, ah, ai and more..How do i reference the selection?
does not work for meCode:me.comboname.value= "aa"
I have a combo box with values aa, ah, ai and more..How do i reference the selection?
does not work for meCode:me.comboname.value= "aa"
Code:me.comboname.value= "aa"
Does not reference the selection, it sets the selection to aa!
To reference it would be
Code:Whatever = Me.comboname.Value
or, because Value is the Default Property of a Combobox, simply
Code:Whatever = Me.comboname
If you're asking how to determine if the selection is 'aa' you could use
Code:If Me.comboname.value= "aa" Then
Linq ;0)>
You can find more info about combo boxes with examples at
http://www.techonthenet.com/access/comboboxes/