Link to home
Start Free TrialLog in
Avatar of nfstrong
nfstrongFlag for United States of America

asked on

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.
Avatar of Eric Sherman
Eric Sherman
Flag of United States of America image

What is the record source of your combo boxes?

ET
Avatar of nfstrong

ASKER

All the comboboxes are unbound and have seperate queries as their record sources.
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?
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.
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?

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

ET
I just double checked and all the combo boxes are enabled and not locked.
okay, in that case, I would like to see into the database. Is it possible to post a scaled down version of your database?
 
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?
As jparul suggested ...  Can you load up a sample of your db application???

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

Book1.xls
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
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
Ok, I see what you are talking about.  How do we fix this?
I am not sure. I haven't had a chance to dig into it more. Will let you know if I find something.
Increased points.
ASKER CERTIFIED SOLUTION
Avatar of nfstrong
nfstrong
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial