?
Solved

can't select value in combobox

Posted on 2009-04-15
24
Medium Priority
?
636 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
[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
  • 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
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

 

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
 

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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

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.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Suggested Courses

765 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