By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,863 Members | 838 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,863 IT Pros & Developers. It's quick & easy.

key selection in combobox

P: n/a
Is there a way to have multiple keystrokes select the first matching
item in a combobox? For instance, in the Doe family members combobox,
typing jo would go to Jane on the j, then John on the o keystroke.
--
Steve
--
http://www.steveclaflin.com
Nov 12 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Yes! Open your form in design view and select the combobox. Open properties and
look for the AutoExpand property. Set it to Yes.
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
www.pcdatasheet.com
"Steve Claflin" <Pi********@cs.compost> wrote in message
news:3F***************@cs.compost...
Is there a way to have multiple keystrokes select the first matching
item in a combobox? For instance, in the Doe family members combobox,
typing jo would go to Jane on the j, then John on the o keystroke.
--
Steve
--
http://www.steveclaflin.com

Nov 12 '05 #2

P: n/a
Actually , they were already set that way, must be the default. But I
had added code to correct an annoying "feature" that typing the first
letter and hitting Enter fired a Change event, but left the Value
property as it was on the previous selection. Which I had "fixed" with:

cbCompany.Value = cbCompany.ItemData(cbCompany.ListIndex)

except that takes over and ends selection after one keystroke. Moving
that line to After Update solves the problem (which I had been reluctant
to do, since I wasn't "updating" anything -- the box is unbound).

Thanks for the help!

PC Datasheet wrote:

Yes! Open your form in design view and select the combobox. Open properties and
look for the AutoExpand property. Set it to Yes.

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
www.pcdatasheet.com

"Steve Claflin" <Pi********@cs.compost> wrote in message
news:3F***************@cs.compost...
Is there a way to have multiple keystrokes select the first matching
item in a combobox? For instance, in the Doe family members combobox,
typing jo would go to Jane on the j, then John on the o keystroke.
--
Steve
--
http://www.steveclaflin.com

--
Steve
--
http://www.steveclaflin.com
Nov 12 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.