Solved

Auto fill as user types in combo box microsoft access 2007

Posted on 2008-10-28
11
1,092 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
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
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…
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…

757 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

19 Experts available now in Live!

Get 1:1 Help Now