Solved

can't select value in combobox

Posted on 2009-04-15
24
595 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
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Familiarize people with the process of utilizing SQL Server stored procedures 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 Micr…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

929 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

10 Experts available now in Live!

Get 1:1 Help Now