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

Set Initial Value of Combo Box

This may end up being more of a design problem than a combo box issue.

I have an unbound form that can be used to enter new data into a table or to modify existing data in that table. The record for the form is selected from a combo box (not the problematic one) of graduate student names. Once the student/record has been selected, I want to populate the other controls on the form from that record.

My question is about other combo boxes on the form. For example, one combo box allows the selection of a thesis advisor from a list of about 15 names from another table. If the record field for the advisor in the student table is empty or blank, no problem. However, if a name was previously selected and stored in the table, I'd like to show that name as the default in the combo box, but still allow the field to be changed by selecting another faculty name from the combo box. I'm stumped about how to do this.

Like I said, maybe this is a design problem. Would it be better to use a bound form?

Thanks in advance!
0
Gazaway
Asked:
Gazaway
  • 4
  • 2
1 Solution
 
Rey Obrero (Capricorn1)Commented:
here is how i'll do it.
* create a bound form
* in the bound form add an unbound combo box
  - use this  combo box afterupdate or change event to filter the records of the bound form
      or
  - find the  record that you have selected from the combo box...
0
 
GazawayAuthor Commented:
capricorn1,

<whoosh!> That's the sound of your explanation going over my head! Not your fault, just my inexperience. Would you elaborate please? I'm unclear as to what is meant by filtering the records and finding the record from the combo box. What records are these? I've already found the record for the student table by the time we get to the faculty combo box. Your answer may well solve my problem, but right now I don't understand how it would work.
0
 
Rey Obrero (Capricorn1)Commented:
so we understand each other, upload a copy of the db..
0
Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

 
GazawayAuthor Commented:
Sorry for the delay. I didn't work on this over the weekend. The database is rather large and has some confidential information in it. Let me see if I can create a subset of the data and tables to upload.
0
 
GazawayAuthor Commented:
Again I apologize for being slow to respond. This database is only one of many responsibilities I have and I can't always get to it as often as I'd like.

I decided to reorganize the form, eliminating the need for an answer to this question.
0
 
GazawayAuthor Commented:
I worked around the problem by reorganizing the form so that this issue didn't arise. I'd already spent quite a bit of time working on it before posting my question here and needed to move on. I'm giving myself a "B" because it's a workaround, not an actual solution to the problem.
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

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