473,399 Members | 2,159 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Product Relations List Box box help....

Hi,

I have a field which holds the Product IDs of related products in a
format of:

1#5#4#7

Where the numbers are the Related Product IDs.

I am trying to create a form to manage this info.

I thought just have two list boxes. One with all the product names and
the other with all the related products. An add & remove between them.

I understand how I could add products by just adding #number when any
product is added.
How do I remove a product from the list box whilst also removing the
correct #number or number (if it was the first) from the data field

Appreciate your halp

David

Mar 8 '06 #1
1 1279
You are actually storing multiple values in one field? That's a cardinal sin
in normalization.

Repent, and change your table design so you have a related table to hold
these values as multiple *records*. The one-to-many relation will set you
free from your immediate problem, and give you the chance to do dozens of
things you cannot currently do without writing ridiculous parsing routines.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"David" <go********@googlemail.com> wrote in message
news:11**********************@p10g2000cwp.googlegr oups.com...
Hi,

I have a field which holds the Product IDs of related products in a
format of:

1#5#4#7

Where the numbers are the Related Product IDs.

I am trying to create a form to manage this info.

I thought just have two list boxes. One with all the product names and
the other with all the related products. An add & remove between them.

I understand how I could add products by just adding #number when any
product is added.
How do I remove a product from the list box whilst also removing the
correct #number or number (if it was the first) from the data field

Appreciate your halp

David

Mar 8 '06 #2

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

Similar topics

0
by: MarionEll | last post by:
Attention XML Product Vendors! XML 2004 is right around the corner and booth space is selling quickly! Reserve your space today, by simply replying to this email or by contacting Joy Blake at...
0
by: dtsearch | last post by:
Press Contact: Belinda Banks S&S Public Relations (212) 946-2823 Belinda@sspr.com Announcing New dtSearch® Product Line Version Release Enhances Indexing, Searching and Display of MS Word,...
2
by: DelphiBlue | last post by:
I have a Nested Datagrid that is using a data relations to tie the parent child datagrids together. All is working well with the display but I am having some issues trying to sort the child...
1
by: Jef De Rycke | last post by:
Hi access group, I have written code to create relations between tables according to a corresponding relations information table. At first I thought my code was not working properly because...
0
by: peter mpa | last post by:
Greetings. I am building a c# windows forms app to show tables from a ms access database. I am using OleDbConnection with Microsoft.Jet.OLEDB.4.0 , 5 datagrids and some data relations to show on...
2
by: Joe | last post by:
Hi I have a dataset with 3 tables and 2 relations Is there a way to when I am at 1 row to tell if there is a relation on that row ??? I have the code hardcoded but try to make it work if the #...
1
by: abcN123 | last post by:
Hi, I'm learing c# and needed some help with dropdown lists relations. For example, 2 DDL will be dates that corespond to one and other. I am trying to make it so that each DDL selection automaticly...
5
by: G .Net | last post by:
Hi I'm hoping that somebody can help me with a fairly puzzling problem. I've created some DataTables which have relations between them e.g. one to many. In the application, I want to remove...
9
by: Anil Gupte | last post by:
After reading a tutorial and fiddling, I finally got this to work. I can now put two tables created with a DataTable class into a DataRelation. Phew! And it works! Dim tblSliceInfo As New...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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...
0
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
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...

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.