>>Why can I not consistently return/set the value for a combo box.
>>
>>I can't do a seek with THIS.Value if it's typed, I must use SelText, and I can't set the value programatically and display it.
>>
>>THIS.Value is correct but nothing is displayed and Seltext is empty.
>>
>>Am I doing something stupid, or is this a 3.0 hairball I'll have to live with?
>
>Seltext return only the selected text, of course! ;-)
>
>Try using the DisplayValue, it could work.
Thanks to you and Barbara, but that's not quite it.
Maybe I'm using it wrong.
I'm using it as a combo list and the source is an array of companies built from a table. The user need to ability to key in a few letters and have a match found, select from the list or enter a new company (no match).
The problem I'm having is an exact match.
I set the DisplayValue to the first element (DisplayValue = array(1)) on the form init.
The user inputs a value and the seek is performed. If it's a partial match with one hit, that name is set. If multiple hits, the list is updated to include only those hits. If no match, a new company form pops up and the new name is added to the array. The Value & DisplayValue are set and the next object gets focus. No problem.
On an exact match, however, the Value gets set, but the DisplayValue gets cleared. I don't have any idea why. The form works, but it looks wrong.
Help me, please.
Matt McDonnell
...building a better mousetrap with moldy cheese...