473,473 Members | 1,511 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

list problem

i have a list box that i would ike to select a name and enter what is
selected into another field on the form.i have tried to put the list
box value into the control source of the other field but it just enters

a number instead of the name in the list box.
how cani get it to enter the name that is in the list box ??
thanks

brino

Nov 12 '06 #1
2 1085
It sounds like the first column of your list box is a numeric ID# (it may
have a column width of "0", which is why you don't see it.) Try setting the
control source of your text box to: =Me!myListBox.Column(1)

This will use the value of the second column (numbering starts at 0) which
presumably is the name value you want.
-Ed
"brino" <bd*************@yahoo.com.auwrote in message
news:11**********************@k70g2000cwa.googlegr oups.com...
>i have a list box that i would ike to select a name and enter what is
selected into another field on the form.i have tried to put the list
box value into the control source of the other field but it just enters

a number instead of the name in the list box.
how cani get it to enter the name that is in the list box ??
thanks

brino

Nov 12 '06 #2
"brino" wrote
i have a list box that i would ike to select a
name and enter what is selected into another
field on the form.i have tried to put the list
box value into the control source of the other
field but it just enters a number instead of the
name in the list box.
You can bet that Access just doesn't decide to play tricks on you and create
numbers that have nothing, really, to do with your application. Thus, there
may be something you didn't tell us, like:

(1) in the List Box properties, how many Columns are specified
(2) in the List Box properties, what Column Widths are specified

A good guess would be that the List Box was intended to allow the user to
select _whatever_ and is populated with both an identifier/key field, and
the name of the _whatever_, but the width of the identifier/key field is 0
so it doesn't display.
how can i get it to enter the name that is in the
list box ??
Let's clarify what you have, get a "diagnosis," before we start on
"treatment."

Larry Linson
Microsoft Access MVP
Nov 12 '06 #3

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

Similar topics

12
by: Kin®sole | last post by:
Hi I'm very new to VB (using VB6) I have two lists one blank and one containing names in the format of surname and then forename.I also have a combo box containing forenames.When I select a...
35
by: Moosebumps | last post by:
Does anyone here find the list comprehension syntax awkward? I like it because it is an expression rather than a series of statements, but it is a little harder to maintain it seems. e.g. you...
1
by: Joseph Barron | last post by:
Here is a SIMPLE problem that I'm trying to solve. It works in Netscape 6.2, but IE6 gives ""No such interface supported." Below are page1.htm and page2.htm . In page1.htm, there are two...
7
by: Shawn Windle | last post by:
----begin node.h-------- #ifndef NODE_H #define NODE_H #include <iostream> //NULL using namespace std; class node {
4
by: Piotr Sawuk | last post by:
First off, thanks for the help, this group was a great support for my efforts of learning c++. However, yet again I plan to throw away what I programmed and re-use a little more of what stl has to...
5
by: John N. | last post by:
Hi All, Here I have a linked list each containing a char and is double linked. Then I have a pointer to an item in that list which is the current insertion point. In this funtion, the user...
7
by: Kieran Simkin | last post by:
Hi all, I'm having some trouble with a linked list function and was wondering if anyone could shed any light on it. Basically I have a singly-linked list which stores pid numbers of a process's...
57
by: Xarky | last post by:
Hi, I am writing a linked list in the following way. struct list { struct list *next; char *mybuff; };
1
by: David Bilsby | last post by:
All Apologies for cross posing this but I am not sure if this is a VC 8 STL bug or simply an invalid use of the iterator. I have a PCI card access class which basically abstracts a third party...
7
by: =?Utf-8?B?Sm9lbCBNZXJr?= | last post by:
I have created a custom class with both value type members and reference type members. I then have another custom class which inherits from a generic list of my first class. This custom listneeds...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
1
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
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...
0
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,...
1
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.