473,591 Members | 2,810 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Display All Columns in a List Box

Hope you all had a great holiday.

I have a subform with a table with a combo box based on a select query. The
combo box is set to display in a form in datasheet view.

When I click the down arrow I can see all of the columns in the combo box
but it only shows one column after selecting it.

I would like all of the columns to display when an item in the list is
selected. Is this possible?

Thanks in advance for any help.

B
Nov 12 '05 #1
2 10600
You said List Box in the subject line but Combo Box in the message. No, this
is not possible in the combo box. You can put a list box or text boxes next
to the combo box to simulate this by getting the values of the other columns
in the combo box and displaying them in the list box or text boxes. Use the
Column property to get these other values.

Example, to display the value from the 3rd column in the combo box in a text
box, set the Control Source of the text box to:

=cboCombobox.Co lumn(2)

Yes, 2 will display the 3rd column, the number is zero based.

--
Wayne Morgan
MS Access MVP
"Brian" <so*****@micros oft.com> wrote in message
news:kqIyb.2898 8$yM6.26010@lak eread06...
Hope you all had a great holiday.

I have a subform with a table with a combo box based on a select query. The combo box is set to display in a form in datasheet view.

When I click the down arrow I can see all of the columns in the combo box
but it only shows one column after selecting it.

I would like all of the columns to display when an item in the list is
selected. Is this possible?

Thanks in advance for any help.

B

Nov 12 '05 #2
Schweet! That worked like a charm - thanks Wayne

"Wayne Morgan" <co************ *************** @hotmail.com> wrote in message
news:7Y******** *************** @newssvr30.news .prodigy.com...
You said List Box in the subject line but Combo Box in the message. No, this is not possible in the combo box. You can put a list box or text boxes next to the combo box to simulate this by getting the values of the other columns in the combo box and displaying them in the list box or text boxes. Use the Column property to get these other values.

Example, to display the value from the 3rd column in the combo box in a text box, set the Control Source of the text box to:

=cboCombobox.Co lumn(2)

Yes, 2 will display the 3rd column, the number is zero based.

--
Wayne Morgan
MS Access MVP
"Brian" <so*****@micros oft.com> wrote in message
news:kqIyb.2898 8$yM6.26010@lak eread06...
Hope you all had a great holiday.

I have a subform with a table with a combo box based on a select query.

The
combo box is set to display in a form in datasheet view.

When I click the down arrow I can see all of the columns in the combo box but it only shows one column after selecting it.

I would like all of the columns to display when an item in the list is
selected. Is this possible?

Thanks in advance for any help.

B


Nov 12 '05 #3

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

Similar topics

1
4132
by: Steve | last post by:
I'm sure this question has been asked before, but I couldn't seem to get the right combination of words to get a hit. I'm looking to do one of two things... 1) Take a list of items, and have them display in a table format, but without any predetermined number of columns. Meaning that somehow using CSS tell the browser to determine the amount of screen space available, and then adjust the list items into an appropriate number of...
18
3334
by: Alpha | last post by:
Hi, I'm working on a Windows applicaton with VS 2003 on windows 2000. I have a listbox that I have binded to a dataset table, "source" which has 3 columns. I would like to display 2 of those columns, "scode" and "sname", as 1 column (if not possible then 2 columns will be fine) in the listbox. Can the listbox display 2 columns information from the dataset and how can I do that? Also, I set the property of the listbox to selectionmode...
1
1422
by: Paul Wilson | last post by:
How do i display the list of files in a particular directory (only the file name), in a grid or similar control, with hyperlinks to be able to download those files. Regards, Paul
9
1942
by: Ben R. | last post by:
Hi guys, I've got a DB table of timecards with these fields in the table: ID (Int) UserID (Int) DateWorked (DateTime) HoursWorkedOnThatDate (Double) I'd like to display a grid, with Monday - Sunday across the top (in columns)
1
1679
by: Justin | last post by:
Hi all, I have a bunch of drop-down lists that should each display an item (from a SQL Server lookup table) based on another piece of data from a separate table. For example; If Not Page.IsPostBack Then .. ..
6
2339
by: garwil | last post by:
Hi, I have a table with the following columns. code, class, nobeds, bedtype, sleeps I have made column "code" into a select list and am trying to figure a way to join it to the other columns but to keep them invisible until a selection is made from the select list. Once a selection has been made then the remaining column's data is made visible alongside the select list and concatenated into a comma separated single field for...
1
4622
gcoaster
by: gcoaster | last post by:
Hello Group, I was wondering if anyone out there can help me I have a form Unbound List Box Control on the form The row source is a built-in query. I was wondering if there is anyway to display the columns in the Unbound List Box Control as RICH TEXT.
4
2911
by: Plamen Ratchev | last post by:
What happens when you add the column WQR_TDH_HEADER_ID to both SELECT and GROUP BY? If you get rows you consider non-duplicate show as duplicate, then most likely your grouping does not include all significant columns to consider one row unique. HTH, Plamen Ratchev http://www.SQLStudio.com
6
3175
by: Ha Nguyen | last post by:
Hi all, Eg: I have a list which contains 4 images (this list is got from database), I want to display them in 2 columns (1 image/col and only 2 columns/row): Img1 | Img2 Img3 | Img4 And if I have more 4 images they are displayed follow: Img1 | Img2 Img3 | Img4 img5 ... Pls help me.
0
7934
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7870
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
7992
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8225
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6639
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5400
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3891
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1465
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.