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

Home Posts Topics Members FAQ

filed in listbox

Kay
Hi
I am using a listbox to view all my records in one of my tables. The
problem I have is with the field "Streen Name". This is a lookup field
from the table "streets" which contains all the streets, postcodes and
area.
The problem Im having is the filed street name shows the postcode
instead of the street name (postcode is the primary key) so it is
looking at column (0) and not column(1).
Has anyone any idea how I can get a field in the listbox to refer to
column(1) instead of (0).

I have tried using the query builder and taking the "tick" off postcode
but that messes things up more.

Can anyone help please, hope it makes sense what ive put down

Thanks

Apr 4 '06 #1
1 1229

Behind the listbox is usually a query. The property 'bound column' links the
value of the box to the desired column. The property 'column widths' sets
the part that is visible.

e.g. If the query returns ProductID, ProductGroup and ProductName, the bound
column would be 1 (to the ID) and the column widths would be 0;2;3 to hide
the ID and show the ProductGroups and ProductNames.

Does this help ?

Bas Hartkamp.
"Kay" <kh******@hotmail.com> schreef in bericht
news:11*********************@g10g2000cwb.googlegro ups.com...
Hi
I am using a listbox to view all my records in one of my tables. The
problem I have is with the field "Streen Name". This is a lookup field
from the table "streets" which contains all the streets, postcodes and
area.
The problem Im having is the filed street name shows the postcode
instead of the street name (postcode is the primary key) so it is
looking at column (0) and not column(1).
Has anyone any idea how I can get a field in the listbox to refer to
column(1) instead of (0).

I have tried using the query builder and taking the "tick" off postcode
but that messes things up more.

Can anyone help please, hope it makes sense what ive put down

Thanks

Apr 5 '06 #2

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

Similar topics

1
by: BO | last post by:
Hello, How we can change our cursor position for this issue: we are in Edit1 filed, when we click Enter (in Edit1 field) I want to be in Edit2 filed. How we can do it? Chris
17
by: amber | last post by:
Hello. Can someone tell me what I may be doing wrong here? I'm using the code (lboxRP is a listbox): Dim newRPindex As Integer newRPindex = Me.lboxRP.FindString(RP)...
6
by: Chris Leuty | last post by:
I am populating a multiselect Listbox from a dataset, with the content of the listbox filled by one table, and the selections determined from another table. So far, I have been keeping the dataset...
7
by: Dave | last post by:
Hi all, After unsuccessfully trying to make my own dual listbox control out of arraylists, I decided to look for a 3rd party control. I've looked for over a week now and can't find anything but...
3
by: Ali Chambers | last post by:
Hi, I have created a listbox called "dtlist1" on my VB.NET form. I call a procedure as follows: Private Sub openfile(flname As String) dtlist1.Items.Clear() etc..
2
by: pawanez4u | last post by:
Hi All, This is Pavankumar, I am doing Attendance Management project in PHP. What i want is as a day increases i want to alter the table with new filed with name current date(i,e) 01 Nov 07 for...
3
by: Yas | last post by:
Hi everyone I am trying to create a DELETE Trigger. I have 2 tables. Table1 and Table2. Table 2 has all the same fields and records as Table1 + 1 extra column "date_removed" I would like that...
3
by: Jackiegall | last post by:
Hi. I have only limited knowledge of Access 2007, as the database I use was created by a former employee - I just use it & have no idea how it works! There are approx 600 customer records in the...
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...
0
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
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,...
0
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: 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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.