• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 646
  • Last Modified:

can't select value in combobox

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
nfstrong
Asked:
nfstrong
  • 12
  • 8
  • 4
1 Solution
 
Eric ShermanAccountant/DeveloperCommented:
What is the record source of your combo boxes?

ET
0
 
nfstrongAuthor Commented:
All the comboboxes are unbound and have seperate queries as their record sources.
0
 
jparulCommented:
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
nfstrongAuthor Commented:
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
 
jparulCommented:
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
 
Eric ShermanAccountant/DeveloperCommented:
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
 
nfstrongAuthor Commented:
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
 
jparulCommented:
Do you have some code in the click event for combo box? If there is, is it possible for you to post it?
0
 
nfstrongAuthor Commented:
There is no code in the click event of any of the combo boxes.
0
 
Eric ShermanAccountant/DeveloperCommented:
Are you sure the Combo Boxes are not Locked and they are enabled???

ET
0
 
nfstrongAuthor Commented:
I just double checked and all the combo boxes are enabled and not locked.
0
 
jparulCommented:
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
 
nfstrongAuthor Commented:
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
 
Eric ShermanAccountant/DeveloperCommented:
As jparul suggested ...  Can you load up a sample of your db application???

ET
0
 
nfstrongAuthor Commented:
Here's a sample.
Sample.zip
0
 
jparulCommented:
so in which combo box does it let you select only the first option?
0
 
nfstrongAuthor Commented:
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
 
jparulCommented:
Before even getting to that point, I am geeting these 2 errors.
See attached file. Did you get these errors too?

Book1.xls
0
 
nfstrongAuthor Commented:
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
 
jparulCommented:
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
 
nfstrongAuthor Commented:
Ok, I see what you are talking about.  How do we fix this?
0
 
jparulCommented:
I am not sure. I haven't had a chance to dig into it more. Will let you know if I find something.
0
 
nfstrongAuthor Commented:
Increased points.
0
 
nfstrongAuthor Commented:
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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 12
  • 8
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now