|
-
Sep 11th, 2006, 08:02 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] Issue with Combobox
I setup a search form using a textbox, hidden combobox (behind the textbox) and a button. User types in a '?' and some text hit the search button, it will go to the db and find all records matching the text w/o the '?'. If they don't type in a '?' then it will find an individual record. If it finds records (when using '?') in the db returns recordset, makes the combox visible, drops down the list, changes the search text to the string without the '?' and is supposed to let the user choose what they want from the dropdown list. I want to default the first item in the combo to be selected so that the text part of the combo stays hidden. Problem is 2 fold:
1. when i set the list index it automatically chooses the first item in the list and does the combo box's click action (which performs a search without the '?') - no chance to select from list.
2. When i use the arrows on my keyboard to navigate the dropdown list it again does the click action of the combobox.
Any ideas on how I can avoid these 2 pitfalls?
Thanks......
-
Sep 11th, 2006, 08:29 AM
#2
Thread Starter
Fanatic Member
Re: Issue with Combobox
I resolved it using a global flag, not the best solution but it works. If anybody has any other ideas they would be appreciated.
Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|