Solved

Access 2013 Combobox data

Posted on 2016-07-19
2
33 Views
Last Modified: 2016-07-19
I must be tired.
I have a form with a bound combobox that returns a name and id, with bound column. The box displays the name and stores the id of the name in the bound table. When the form is opened on a particular record, one wants the combobox to display the record stored in its bound field.  Nothing I can do will convince it to act this way. It invariably overwrites the bound data in the table and displays the combobox empty.

I have tried unbinding the combobox and saving the data on a hidden text box on the form, then setting the value of the textbox to the combobox on load, but this also does not work.
I KNOW THIS IS POSSIBLE. Worse, I know it is simple, but my sleep addled brain can't figure it out.
0
Comment
Question by:JP_TechGroup
2 Comments
 
LVL 35

Accepted Solution

by:
PatHartman earned 500 total points
ID: 41719389
So, when you navigate to a record, the combo box shows empty even though there is a valid value in the underlying record?  Are you sure you don't have any code that is causing the issue?  Rename the combo box and see if you get any compile errors.
0
 

Author Comment

by:JP_TechGroup
ID: 41719581
SMH. Apparently someone introduced a sub that emptied the controls on load.
Wonder who could have done that?
Thank you!
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Merging spreadsheets 8 47
Excel 2010:  Creating a "Yes" or "No" Pop-Up 20 45
VBA Excel Copy selected columns 4 27
combo box query 6 10
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
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…

825 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