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 Programming / January 2005

Tip: Looking for answers? Try searching our database.

Limit content of Combo Box

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeffrey O'Donnell - 21 Jan 2005 12:32 GMT
I have an Employee Evaluation Reports form that lists the employee's personal data, location, section, and various dates.
For ease of input, I've added a combo box for the employee's Rater and
Reviewer.  
At present, the combo box (cboRater)is bound to tblRaters which is generated from tblEmployee, so all the Company's employee names appear in the combo box. - Not good.
I'd like to limit the names that appear in the Rater combo box
based upon the Section field of the employee record.  But the twist is, not just matching the Section field.  I'd like to include one or two other possible Section field options  (e.g. the Rater combo box for an employee working in the HR section should only display names that are either in HR or Management.)
I can do this query manually.  How do I get the form to do this automatically?
rkc - 21 Jan 2005 18:17 GMT
> I have an Employee Evaluation Reports form that lists the employee's personal data, location, section, and various dates.
> For ease of input, I've added a combo box for the employee's Rater and
[quoted text clipped - 3 lines]
> based upon the Section field of the employee record.  But the twist is, not just matching the Section field.  I'd like to include one or two other possible Section field options  (e.g. the Rater combo box for an employee working in the HR section should only display names that are either in HR or Management.)
> I can do this query manually.  How do I get the form to do this automatically?

The most basic way of doing this is to create a saved query that uses
controls on the form for criteria. Set the combobox recordsource to
the saved query. If the number of fields used as criteria changes with
employee type then you could create more than one saved query and use
logic in the form's current event to set the combobox recordsource.
 
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.