472,804 Members | 1,165 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,804 software developers and data experts.

Combo-box question

I've got a combo-box drop down list with 2 columns. Both these columns are
displayed in the list. But only the primary column is displayed in the field
once I've made my selection from the list. Is there any way I can display
the information from both columns?
Thanks
Kevin
Nov 12 '05 #1
3 2674
HJ
You can use a query that contains a 'column' with the combined data. The
query column can be like this: CombinedColumn: [Field1] & " " & [Field2]

Then use the query and the combined column in the combo box.

HJ

"Kevin Barnard" <ra*******@hotmail.com> wrote in message
news:bi**********@ctb-nnrp2.saix.net...
I've got a combo-box drop down list with 2 columns. Both these columns are
displayed in the list. But only the primary column is displayed in the field once I've made my selection from the list. Is there any way I can display
the information from both columns?
Thanks
Kevin

Nov 12 '05 #2
Kevin,
You can add another field next to the combo.
Set the Controlsource as =ComboName.Column(1)
This will shows your second column (Counting starts at 0)
Look in Help for 'Column' if you need more information.

--
Hope this helps
Arno R
"Kevin Barnard" <ra*******@hotmail.com> schreef in bericht news:bi**********@ctb-nnrp2.saix.net...
I've got a combo-box drop down list with 2 columns. Both these columns are
displayed in the list. But only the primary column is displayed in the field
once I've made my selection from the list. Is there any way I can display
the information from both columns?
Thanks
Kevin


Nov 12 '05 #3
Hi Arno, thanks for the help. It works beautifully.

Cheers
Kevin
"Arno R" <ar****************@tiscali.nl> wrote in message
news:bi**********@reader1.tiscali.nl...
Kevin,
You can add another field next to the combo.
Set the Controlsource as =ComboName.Column(1)
This will shows your second column (Counting starts at 0)
Look in Help for 'Column' if you need more information.

--
Hope this helps
Arno R
"Kevin Barnard" <ra*******@hotmail.com> schreef in bericht

news:bi**********@ctb-nnrp2.saix.net...
I've got a combo-box drop down list with 2 columns. Both these columns are displayed in the list. But only the primary column is displayed in the field once I've made my selection from the list. Is there any way I can display the information from both columns?
Thanks
Kevin


Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Harry Haller | last post by:
<select name="cboPlaces" id="cboPlaces"> <option value="3">Countryside</option> <option value="4">Forest</option> <option value="5">Mountain</option> <option value="6">Desert</option> <option...
1
by: Tina McGibben | last post by:
I basically have a form with a subform with two combo boxes on the main form which filter the subform. The code below works except I cant seem to get it to show all the worksheets when there is...
8
by: bbdata | last post by:
ok i have a problem here and not much time to play round. have a form bound to a table. one of the combos is bound to a field Agents. i have active and retired agents. thing is, i want to be able...
2
by: Al | last post by:
hi,I am using asp.net(vb) I am trying to create 3 combo boxes which are dependable on each other. when comb1 is selected, it shows the comb2 data based on the selection in combo1 and when combo2...
1
by: Alejandro González | last post by:
Hi I have a combobox binded to a Datatable something like combo.DataSource = dt.DefaultView; combo.DisplayMember = "descField"; combo.ValueMember = "valueField"; it works fine.
2
by: G .Net | last post by:
Hi Is there a way to prevent the combo displaying its list of items when the "combo arrow" is clicked? The problem I'm trying to resolve is that depending on a Boolean value, which is set...
8
by: AA Arens | last post by:
Hi I do have a products table and products-parts table in my Access 2003 database and log all services into a form. I do have at least the following two combo boxes on my form: - Choose...
3
by: John | last post by:
AC2007 I changed my combo's row source and then the autocomplete stopped working. The combo is two columns, bound to the first. First column is primary key (ID). Second column is a...
2
by: Ruthenfods Tellez | last post by:
I have an application in asp; in my form I have a combo and a textbox, the combo is fill in from a database query. I cannot do the following: when selecting an item from the combo, it should send...
0
by: Jeff | last post by:
I don't remember this being that hard. Or maybe it's just early senility. On a simple bound continuous form I have a combo for filtering the form by customer. The form record source is a sql...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.