Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / October 2005

Tip: Looking for answers? Try searching our database.

Filter List box from List Box

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ripper - 14 Oct 2005 16:31 GMT
I have 2 list boxes on frmGradeEnter.
lstGroupSelect, lstStudentName

I have a list of groups in lstGroupSelect, got that no problem.

I want the selection in lstGroupSelect to filter the Students in
lstStudentName to only the ones who are in the group selected in
lstGroupSelect.

How do I do that?  I tried making a query that read the lstgroupSelect, but
you must input that before you open the form or you get an error message.

Signature

Thanks As Always
Rip

[MVP] S.Clark - 14 Oct 2005 22:26 GMT
The IN clause is good to use.  Parse the first listbox's selection and fill
them into an IN clause.

ItemsSelected property, I think.  See the help file for more info.

Signature

Steve Clark, Access MVP
http://www.fmsinc.com/consulting

>I have 2 list boxes on frmGradeEnter.
> lstGroupSelect, lstStudentName
[quoted text clipped - 8 lines]
> but
> you must input that before you open the form or you get an error message.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.