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

displaying multiple column on combo box in access?

Hi,

I am trying to display the following data on the combo box.

departmentID, institutioname, departmentname

Column count 3
Column width 0;3;3
Bound Column 1

I want to see both institution and departmen name when I click it.
But When I make the selection, I want the combo box to display the department name.

But the institution name gets instead.
Do I need to change the order?
But I want Institu and department name in that order to display.
0
dkim18
Asked:
dkim18
5 Solutions
 
Martin LissOlder than dirtCommented:
Instead of trying to use multiple columns in a combobox, use a Listview instead. There are lots of example here of doing that.
0
 
DatabaseMX (Joe Anderson - Microsoft Access MVP)Database ArchitectCommented:
The combo box is going to display the first non-zero column  after the selection.
You may be able to adjust the Row Source ... concatenate fields together for display, etc.

mx
0
 
Aruiz04Commented:
If there are multiple departments for each institute, I would make two combo boxes, the first for institute and the second for departments, that way after selecting the institute you should requery the departments combobox.
On the other hand if it doesn't matter the order and you don't want to add two comboboxes then yes, you should re order the columns
0
 
Dale FyeCommented:
I would recommend MX's comment above as one good method.

As he mentioned, the value that gets displayed after you select the item will be the first column with a display width > 0, so you might be able to accomplish this by switching the order of your Department and Institution columns in your combo box to:

departmentID, departmentname, institutioname
0
 
als315Commented:
In addition to MX and Fyed:
you can sort your columns independently from order.
order
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

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