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

How to filter list box so it eliminate items selected before

In my form there is combo box and list box and OK button
First I select I select training topic. Then I select, from list box ,employees who received this training .When I click on the OK button - those employees stored with the same topic of training in table(tblTrainingEmployees) and the form closed .
Now when I open the form again to add employees to this topic I want to eliminate those employees who has selected before . How can I do that ?.
Sorry for my clumsy English
Thanks in advance.
Jul 31 '16 #1
2 848
jimatqsi
1,271 Expert 1GB
Don Quixote, make a query that joins the Employee table to the TrainingTopics (all employees and all training topics. Then make a query that joins that query to the tblTrainingEmployees with a LEFT JOIN on employee and training topic. Include a WHERE clause that tests for a Null Employee number in the tblTrainingEmployees table. The result will be only Employees and training that are not yet matched in the tblTrainingEmployees table.

That query should be the rowsource for your listbox. After the training is selected, filter the listbox rowsource by the selected training topic.

Jim
Aug 1 '16 #2
Thank you jim for your time.
I must confess that I am new to SQL .
Can You please show me the right syntax of those statements
thanks
Yoel
Aug 1 '16 #3

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

Similar topics

1
by: DC Gringo | last post by:
I'm having such a problem with this DropDownList in a user control that is posting back and throwing an error: System.Web.HttpException: A DropDownList cannot have multiple items selected ...
2
by: John | last post by:
Hi Is there a way to get the count of selected items in a list? Thanks Regards
2
by: Tom Bray | last post by:
Ok I am baffled I can not figure out this problem. I am getting the following error: Portal Error - A DropDownList cannot have multiple items selected. Error information Name Value Message...
2
by: Microsoft | last post by:
I'm not sure which control to use for this: I would like the user to be able to paste a list of items into a box and then be able to run through them one at a time. Hopefully there is a control...
2
by: pb648174 | last post by:
I frequently have the problem where I have a list of items to delete in a temp table, such as ProjectId Description ------------- ---------------- 1 ...
2
by: =?Utf-8?B?S3Jpc2huYQ==?= | last post by:
Hi, I am devloping one web application using .net framework 2.0.One page has 7 dropdown list control.When i update the values first bind the values to the drop down llist then selected text...
3
by: jschmidt | last post by:
Hello Everyone, I am trying to keep a running total of the number of items selected in a multiselect list box. I want to do this in vb code and update the number dynamically everytime they select...
6
by: MarkP | last post by:
Is there anyway to save multiple items selected in a list box to a string? Is it then possible to save the string to a record field in a table? Or is there another way to capture multiple items...
1
by: Sal Sal | last post by:
Hi I have a listbox that I am adding files to it. If the user checks a specific radiobutton when adding the item, I want to color the text with some color -- but only the text for that item, not all...
6
mmwit
by: mmwit | last post by:
dears! I want to list provinces and districts, and want when I selec province 1 all the districts of provinces should only be shown to me in the district combo, and if I select the 2nd province in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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
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...

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.