VB Code for Drop Down List

S

Such a Beginner

How do I create code that will enable me to hit enter on an item in an
Unbound Combo box drop down list, such that when I hit enter on that
particular item, it opens the related form?

Thus far, I've tried If ... Then ... Else statements, with 'DoCmd.OpenForm
"...", acNormal' actions, only to have the first action statement function
vs. the appropriate action statement for the Unbound = Item # from the drop
down list.
 
G

Golfinray

How do I create code that will enable me to hit enter on an item in an
Unbound Combo box drop down list, such that when I hit enter on that
particular item, it opens the related form?

Thus far, I've tried If ... Then ... Else statements, with 'DoCmd.OpenForm
"...", acNormal' actions, only to have the first action statement function
vs. the appropriate action statement for the Unbound = Item # from the drop
down list.
 
L

Larry Linson

Such a Beginner said:
How do I create code that will enable me to hit enter on an item in an
Unbound Combo box drop down list, such that when I hit enter on that
particular item, it opens the related form?

Thus far, I've tried If ... Then ... Else statements, with 'DoCmd.OpenForm
"...", acNormal' actions, only to have the first action statement function
vs. the appropriate action statement for the Unbound = Item # from the drop
down list.

You don't indicate that you included a WhereCondition clause using the
selected value from the Combo. Read carefully the Help for DoCmd.OpenForm.
If you, then, can't make it work, post back here with specifics of what you
did... not just a single quoted instruction with ellipsis.

Larry Linson
Microsoft Office Access MVP
 

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