Autofill or autotype?

B

Bingo

Hello again,

I'm trying to write a little search form that fills in possible
values while a user types in a text box. For instance, when the user
types "A" (in a non-bound box) I locate the first "A" record, then
they type "B" I find the the "Able Rug company" the "ABC insurance
agency" and so on.

But, I can't figure out how the get this work with the available
event hooks. KeyPress doesn't update the textbox, Change seems to
reset the insertion point (as well as selecting text), BeforeUpdate
doesn't fire for each key, etc.

I'm sure there's a way, but I defer to your collective expertise to
illuminate it! TIA - Rick
 
M

Media Lint

Why don't you merely use a combo box, populate the
rowsource appropriately and leave the "Auto Expand"
property set Yes (true).

This will be much more efficient than trying to duplicate
this functionality in VBA code, which will likely end with
user frustration at the sluggishness of your resulting
interface!
 
B

Bingo

Why don't you merely use a combo box, populate the
rowsource appropriately and leave the "Auto Expand"
property set Yes (true).

This will be much more efficient than trying to duplicate
this functionality in VBA code, which will likely end with
user frustration at the sluggishness of your resulting
interface!

The main problem with doing that is this is replacing an existng
application and that's the behavior they want.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top