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 / March 2007

Tip: Looking for answers? Try searching our database.

"Linked" List Boxes in Form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jason - 12 Mar 2007 16:31 GMT
Hello,

I have a list of sales rep names in one list box that I'd like to have
associated with multiple records of their sales in a second list box on a
form. Essentially, when a user clicks on a name on the left list box, the
right list box displays all the sales in the database under that name in a
one-to-many type relationship. I'm having a little trouble figuring out the
right approach for this. Should I add code to the left list box to query, or
is it better to use a sub-form here?

Thanks!
Carl Rapson - 12 Mar 2007 18:39 GMT
In the first listbox's AfterUpdate or Click event (either should work),
modify the second listbox's RowSource based on the selection in the first
listbox. That's always worked for me.

Carl Rapson

> Hello,
>
[quoted text clipped - 9 lines]
>
> Thanks!
Jason - 12 Mar 2007 19:21 GMT
Thanks, Carl, that indeed worked perfectly!

> In the first listbox's AfterUpdate or Click event (either should work),
> modify the second listbox's RowSource based on the selection in the first
[quoted text clipped - 15 lines]
> >
> > Thanks!
 
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.