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 / May 2008

Tip: Looking for answers? Try searching our database.

Yet another filter Subform by Combo Box

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
idtjes3 - 22 May 2008 16:53 GMT
Hello All,

  First, sorry for posting a question like this again. I know its been
answered before, but even after trying a few methods on this site, I'm still
unable to get mine to work. I have a main form called Employee Information.
On This form is a tab control with 2 tabs: "contact information tab" is a
bunch of boxes that display data from a Employee Data table and "project/hrs
tab" displays information form a form "SubForm - Employee Time Cards", which
lists all projects and the time that employee worked on it (in a data sheet
format).
  Now on the Main form I already have one combo box that uses a query to
populate the box with all the employees names. As I select and employee from
the combo box their respected data is listed on the contact information tab
and the project/hrs tab filters the SubForm - Employee Time Cards to only
display results from the selected employee.
 I created another combo box called ProjectSelect that uses all our
ProjectID numbers as a source. I want to be able to filter the project/hrs
data on the subform of a selected employee by what ever project i choose from
the combo box. Basically what I have to do now is go through all the records
and physically count the hours from a specific project. I kinda have an Idea
of what i have to do, but I'm still having a hard time understanding Accesses
syntax. Heres the code I have to control the first combo box which lets me
choose an employee:

Private Sub cmbEmployeeID_AfterUpdate()
   DoCmd.ShowAllRecords
   Me!EmployeeID.SetFocus
   DoCmd.FindRecord Me!cmbEmployeeID
   Me.ProjectSelect.Value = Null
End Sub

I have the ProjectSelect to set its value to Null after I choose a new
employee because I eventually don't want the filter to still be active if I
switch to another employee. Sorry for the long post, I just want to make sure
I give enough details. If your still with me, Thanks!
idtjes3 - 22 May 2008 18:06 GMT
Hello Again,

  Please disregard this post as Ive decided to take a more simple route to
achieve my desired affect.
 
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.