Solved

Auto fill as user types in combo box microsoft access 2007

Posted on 2008-10-28
11
1,096 Views
Last Modified: 2013-11-28
Hi Experts,

I want the matching value in a list to automatically fill the field area when the user is typing in a combo box field.  I have autoexpand set to yes, limit to list set to yes, box is not locked, box is enabled, inherit value list set to no, edit values in list set to no.  Not sure what is wrong here.  Does anyone have an idea of how to accomplish this? Thanks.

Laura :-)
0
Comment
Question by:linbayzak
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 5
11 Comments
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 22827993
linbayzak,

Sounds simple enough.

If not, then you will have to be a bit clearer and explain exactly what you mean when you say:
  "fill the field area"

Here is a sample

JeffCoachman
Access-EEQ23854284AutoExpandAuto.mdb
0
 

Author Comment

by:linbayzak
ID: 22831149
Hi Jeff,
This is really strange, I have all the same property settings as you with the exception of:
**field is bound
**Row Source gives name of query instead of select statement.
I put my info into your db  and attached it so you can see it. Thanks.

Laura
Access-EEQ23854284AutoExpandAuto.mdb
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 22833648
Your sample needs the linked tables.

Please submit a sample I can just open and see the issue.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:linbayzak
ID: 22834399
Ok, here are the linked tables, they are in a separate db.

Thanks :-)
Laura
Linked-Tables-DB1.mdb
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 22834687
OK, so I opened the database

All the dropdown appear to work fine.

So what's the problem?
0
 

Author Comment

by:linbayzak
ID: 22835129
Drop downs work fine, but my client wants to type in put and Putnam come up in the counties, or me and Melissa Taylor come up in the staff members.  She wants to use her keyboard exclusively or as much as possible.  The form in there that Jeff Coachman developed works that way, but mine don't and they have the same properties.  Any idea what is going on.  My combo boxes have a query as recordsource, is that the difference?

Thanks,
Laura
0
 

Author Comment

by:linbayzak
ID: 22835361
And also, Jeff's combo box is unbound.  Not sure if this might make a difference.

Thanks,
Laura :-)
0
 

Author Comment

by:linbayzak
ID: 22835393
Nope, I found it, the bound column was causing the issue, I had the second column bound because I want to save it in the db as the name not the id, but this is what was causing the problem.

I wonder if there is any way around that.

Laura
0
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 500 total points
ID: 22837101
Standardf Database theory holds that the combobox bound column should store the ID in the table, not the name.
(If not, then why bother including the ID field in the combobox?)

Of course, if all of your relationships are set up to use the Name instead, you should keep it that way.

JeffCoachman
0
 

Author Closing Comment

by:linbayzak
ID: 31510748
Thanks Jeff.  you are right.  I don't even know what I was thinking.  Thanks for your help, I used your form example to test mine and eventually came up with the solution.  Have a great day :-)

Laura
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 22842903
;-)
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

687 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question