473,508 Members | 2,367 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Display values in a combobox frm a table

5 New Member
Hello,

More questions from this newbie:

I have an Application table which has Application ID and Application Name. I have another table Variable which has Variable ID, Application ID and other columns.

I have a form with a dropdown list which should display the Application Names in the dropdown list. A criteria for the name to be displayed is that it should already have a record in the Variable table.

I am able to display dropdown values in the form but it displays the Application ID. What should I do to be able to display the Application Name and not the ID.

help!!!

thanks,
lyanne
Mar 4 '08 #1
1 2296
Stewart Ross
2,545 Recognized Expert Moderator Specialist
Hello,

More questions from this newbie:

I have an Application table which has Application ID and Application Name. I have another table Variable which has Variable ID, Application ID and other columns.

I have a form with a dropdown list which should display the Application Names in the dropdown list. A criteria for the name to be displayed is that it should already have a record in the Variable table.

I am able to display dropdown values in the form but it displays the Application ID. What should I do to be able to display the Application Name and not the ID.

help!!!

thanks,
lyanne
Hi Lyanne. In your combo box properties you will find the column widths property. If you have two columns in the combo it will show two values, like this:

1.667cm;4.524cm (exemplars only)

It is normally the case that the first column is the 'bound' column, the one which displays the ID value. If you set the width of this column to 0 it will show the other column - the Application Name - instead of the ID. To do this, just change the widths like this:

0cm;4.524cm; (remember to use your own column width, not mine!)

Then reduce the list width property to reflect the narrower list.

-Stewart
Mar 4 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1978
by: Gamze | last post by:
Hi, How can i get values from datagrid to combobox and should select the same name as in datagrid row on the combobox control In my vb.net windows application ,i have combobox which is...
1
2612
by: Seth Delaney | last post by:
I have a form with a combobox and a list box. The combobox will list records (names of queries) that are entered in a table called tblListName. I have the combobox set to get its values from this...
3
4014
by: google | last post by:
This is something I've done plenty of times in '97, but I can't seem to get it to work correctly in Access 2003. Say, for example, I have a form with an unbound combobox, the data source is a...
2
19319
by: Hanumanth Reddy | last post by:
Any one could help how to bind two table field values into combobox display member property. I mean i have two fields in a table. One is states description and another is states codes.I want to...
0
1114
by: Richard | last post by:
I have a combobox that I use to display the advertising medium that attracted a client. On the Client's table is the foreign key AdvertisingMedium, and the combobox successfully reads the data...
2
12495
by: AMDRIT | last post by:
Hello Everyone, I would like to format the Display Members of a combobox's datasource. Is there a way to apply a format without subclassing the original datasource? For example, given a list of...
4
2728
by: rszebras | last post by:
I inherited a database (as a novice at Access) and need to modify it to make it more efficient, i.e., the assignment form needs to autopopulate with the client's name, address, phone number, etc.,...
7
3734
oll3i
by: oll3i | last post by:
i want to change the values in two columns one colum is a combobox and the secons column is editable too i want to get the value of that second column and the value of combobox and sent that...
2
6806
by: Randy | last post by:
Hi, I have a small table - 2 columns, 5 rows. Col 1 is the key column and has integer values of 1 through 5. Column 2 is a varbinary(MAX) column and has jpg images loaded in it. What I want...
0
7115
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...
0
7321
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7377
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7036
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...
0
7489
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...
1
5047
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1547
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 ...
1
762
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.