By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,474 Members | 966 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,474 IT Pros & Developers. It's quick & easy.

Product Relations List Box box help....

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.