?
Solved

Auto fill as user types in combo box microsoft access 2007

Posted on 2008-10-28
11
Medium Priority
?
1,097 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
10 Questions to Ask when Buying Backup Software

Choosing the right backup solution for your organization can be a daunting task. To make the selection process easier, ask solution providers these 10 key questions.

 

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 2000 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

How Blockchain Is Impacting Every Industry

Blockchain expert Alex Tapscott talks to Acronis VP Frank Jablonski about this revolutionary technology and how it's making inroads into other industries and facets of everyday life.

Question has a verified solution.

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

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Suggested Courses

777 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