473,385 Members | 1,593 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,385 software developers and data experts.

Finding a value NOT selected in a listbox?

Hello everyone,

I'm having a bit of a problem regarding Access 2003 which I really hope is an easy one to solve! I'm using a multiple-selection listbox control to look up values of one table and then it takes the selected values and puts them into a memobox (the values are delineated by a comma) that we can print on a report.

What I would like to have happen is that the user be presented with this same list of possible fields to select from. They choose the values that they want to include (which goes into a memo box called 'inclusions'), but then the remainder of the values (the values that were NOT selected) be put into a separate memo box called 'exclusions'.

Is this possible? I'm hoping that it's something easy but even if there is some random work-around solution I'm open to any possibilities! : )

Thanks for your help!

-Catherine
Oct 11 '07 #1
3 1465
nico5038
3,080 Expert 2GB
Your problem reminds me of a sample database I once built for moving selected fields to another listbox, the same way Access uses to select fields in a wizard.

Just check:
http://www.geocities.com/nico5038/xS...p-Down2000.zip
Just check the form "frmMoveLeftRight" and see that the listbox is based on a table with a YesNo field ("LeftRight") to determine in which listbox the data needs to appear.
Having this implemented will allow you to build the Include Memo field from a query selecting the YesNo field to be True and for the Exclude Memo field with the value False.

Getting the idea?

Nic;o)
Oct 11 '07 #2
Thanks Nico!

It took me a while to get this all to work with the code I was using but I couldn't have done it without you! You guys on here are really smart - I really had to wrap my brain around this for a while lol

-Catherine
Oct 12 '07 #3
nico5038
3,080 Expert 2GB
Well done !
I always admire people that can work with my cryptical first directions. I normally start that way so I don't spoil the fun of the discovery of the final solution.

Success with your application !

Nic;o)
Oct 12 '07 #4

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

Similar topics

5
by: Coz | last post by:
Hi all, I'm looking for help again!!! I have been writing a page to update a database but now have another 'silly' problem with listbox's...Grrr... I'm trying to populate the list box with...
9
by: Megan | last post by:
Hi- I'm creating a database of music bands with their cds and songs. I'm trying to program an SQL statement so that I can enter a string of text in a textbox, press the 'Enter' key, and have...
3
by: VM | last post by:
How can I get the selected value of a Windows Listbox? It only has two items (which I added through the Collection property) and everytime I get the selectedIndex, it returns -1. If I use...
2
by: Allan Horwitz | last post by:
When I try to reference the lstproducts.selecteditem.value using autopostback from the lstproducts listbox I get an error? How can I fix my code to get the selected value from the lstproducts...
4
by: Moe Sizlak | last post by:
Hi There, I am trying to return the value of a listbox control that is included as a user control, I can return the name of the control but I can't access the integer value of the selected item,...
10
by: ken | last post by:
Hi, Say I have a list box. I also created a control on a form bound to that list box. When I click different rows in the listbox the control changes the ID of the row depending on what I click. ...
1
by: acord | last post by:
Hi, I am having problem to get a value of the selected item from a dropdown listbox. Here is the JS function; function getSelectedItem(objSelect) { alert("in getSelectedItem"); alert...
2
by: php_Boi | last post by:
i have designed an application that is a dynamic submission form. i have text fields and listboxes. now i am able to retain the values of the listboxes when i populate the listbox "manually"(single...
3
by: WolfgangD | last post by:
Hi, I have got a prblem: I created a checkbox, this checkbox will get the informations from a text file : FileStream mem_name = new FileStream(pfad, FileMode.Open, FileAccess.Read);...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...

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.