Solved

Auto fill as user types in combo box microsoft access 2007

Posted on 2008-10-28
11
1,093 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
  • 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
 

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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

919 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now