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 / New Users / July 2005

Tip: Looking for answers? Try searching our database.

Combo/List Box

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lori - 29 Jul 2005 15:58 GMT
Hello,
I have a form for all our companies profile information, within this form I
have a command button called "investments" which allows for as many
investments to be entered as needed.

I am trying to create a short-cut (pop-up) form which will allow for the
user to select a company from a combo box.  Then based on which company they
select, I would like a list box next to this combo box which will list all
the investments for that company.  Then, I would like to allow the user to
select an investment and click on a command button that would then open the
investment form in that company.  I set up the combo box which shows all the
companies, but have no idea how to create the list box next to it to show the
selected company investments and the command button.  Can anyone help me with
this or at least give me some guidance?  
Signature

Thank, Lori

Al Camp - 29 Jul 2005 16:52 GMT
Lori,
  Both the combo and listbox use a query behind them to supply the possible
entries.  Given examples of cboCompany and lstInvestments...
  In the listbox query, use this criteria on the Investment field...
       = Forms!frmYourFormName!cboCompany
  This will force the listbox to only show Investments related to the
Company value selected in cboCompany.
  Do a... lstInvestments.requery on the AfterUpdate event of cboCompany so
that whenever cboCompany is enetered or changed, the listbox will
"re-synch."
hth
Al Camp

> Hello,
> I have a form for all our companies profile information, within this form
[quoted text clipped - 16 lines]
> with
> this or at least give me some guidance?
 
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.