Solved

can't select value in combobox

Posted on 2009-04-15
24
586 Views
Last Modified: 2013-11-28
I have 6 comboboxes on my form.  Two of them I am able to select values, but the other four not.  They display the values in a list but I can't select them.  I have checked and all have Enabled = Yes and Locked = No.  Edits are allowed on the form.  Any other ideas why I wouldn't be able to select a value.
0
Comment
Question by:nfstrong
  • 12
  • 8
  • 4
24 Comments
 
LVL 19

Expert Comment

by:Eric Sherman
ID: 24148025
What is the record source of your combo boxes?

ET
0
 

Author Comment

by:nfstrong
ID: 24148038
All the comboboxes are unbound and have seperate queries as their record sources.
0
 
LVL 6

Expert Comment

by:jparul
ID: 24148066
what happens when you click on them to show the drop down/select values? Does it give you an error? Or they are just greyed out?
0
 

Author Comment

by:nfstrong
ID: 24148083
when I click to show the values, the values are displayed, but when I click to select one of the values nothing shows in the combobox.
0
 
LVL 6

Expert Comment

by:jparul
ID: 24148371
I would check the basic things such as:
a) Are you putting the combo boxes onto forms where AllowEdits is set to No?

b) Are the combo boxes  Locked?

c) Are you binding them to fields that are not editable or to a field in a
recordset that is not editable?

 
0
 
LVL 19

Expert Comment

by:Eric Sherman
ID: 24148417
Yep, that's kind of why I was asking what is the record source of the combo boxes that's not working.

Sounds like you have a recordset or record source in there that's not updateble.

ET
0
 

Author Comment

by:nfstrong
ID: 24148596
That was it.  My queries weren't updateable.  I changed them to make table queries and set the tables as the record source, but I'm still not able to select a value in the comboboxes.
0
 
LVL 6

Expert Comment

by:jparul
ID: 24148824
Do you have some code in the click event for combo box? If there is, is it possible for you to post it?
0
 

Author Comment

by:nfstrong
ID: 24148838
There is no code in the click event of any of the combo boxes.
0
 
LVL 19

Expert Comment

by:Eric Sherman
ID: 24148876
Are you sure the Combo Boxes are not Locked and they are enabled???

ET
0
 

Author Comment

by:nfstrong
ID: 24148903
I just double checked and all the combo boxes are enabled and not locked.
0
 
LVL 6

Expert Comment

by:jparul
ID: 24148988
okay, in that case, I would like to see into the database. Is it possible to post a scaled down version of your database?
 
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:nfstrong
ID: 24151393
I got rid of the queries completely and created tables as the source of the combo boxes.  I have the list for the combo box filtered based on what is selected in the first combo box.  This works great except that it will only let me select the first option in the list.  Any ideas why that would be?
0
 
LVL 19

Expert Comment

by:Eric Sherman
ID: 24152794
As jparul suggested ...  Can you load up a sample of your db application???

ET
0
 

Author Comment

by:nfstrong
ID: 24157273
Here's a sample.
Sample.zip
0
 
LVL 6

Expert Comment

by:jparul
ID: 24158599
so in which combo box does it let you select only the first option?
0
 

Author Comment

by:nfstrong
ID: 24158642
If you open frmSpreads and select a client and date.  Based on what client you select will determine if the Branch, Company, Country, LoanType, and DealerType combo boxes are populated.  These last five are the ones only letting me select the first option.
0
 
LVL 6

Expert Comment

by:jparul
ID: 24158743
Before even getting to that point, I am geeting these 2 errors.
See attached file. Did you get these errors too?

Book1.xls
0
 

Author Comment

by:nfstrong
ID: 24158855
That was because I didn't include all of the forms to try to make the db smaller.  I've included the necessary forms now so you shouldn't get those errors.
Sample.zip
0
 
LVL 6

Expert Comment

by:jparul
ID: 24160149
Herte's what I have found so far:
It's not that it doesn't let you select a value from the combo box. It does let you select a value. But somewhere in your program, the combo box is being reset as a result of some trigger.
See the attached DB and you will know what I am talking abt.
I selected Reliant Financial Corp. as the client name and then straight away click on Branch combo , select the second item.
Sample.zip
0
 

Author Comment

by:nfstrong
ID: 24160932
Ok, I see what you are talking about.  How do we fix this?
0
 
LVL 6

Expert Comment

by:jparul
ID: 24170022
I am not sure. I haven't had a chance to dig into it more. Will let you know if I find something.
0
 

Author Comment

by:nfstrong
ID: 24170273
Increased points.
0
 

Accepted Solution

by:
nfstrong earned 0 total points
ID: 24216180
I found the solution.  In my record source I was selecting the client and the branch.  I changed this to just select the branch and keep the filter on the client.  By selecting the client it was binding the combobox and not allowing the other options to be selected.
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

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…
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Familiarize people with the process of utilizing SQL Server views 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 Microsoft Access…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

759 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

18 Experts available now in Live!

Get 1:1 Help Now