Please help - new to Access and VBA. I've searched old posts but I still can't work this out.
I have a sub form "Hours" based on the table Hours. This sub form appears within the "Pay" form. On the sub form I want 2 combo boxes: cboFaculty and cboProject. cboFaculty is bound to a query that lists Faculty (from Faculty table, FacultyID, Faculty Name, CurrentFaculty=yes) and stores the FacultyID into the Faculty field in the Hours table. That's fine, I can do that with the combo wizard.
But here's the problem, I want to select the faculty name from cboFaculty, and that then filters cboProject to only show the current projects for that faculty member (this is from the Project Table with fields ProjectID, ProjectName, FacultyID, CurrentProject=yes). Once a project is selected, I want the ProjectID to be stored in the Project# field in the Hours table.
Please remember a newbie with Access and VBA so I need very detailed instructions.
I have a sub form "Hours" based on the table Hours. This sub form appears within the "Pay" form. On the sub form I want 2 combo boxes: cboFaculty and cboProject. cboFaculty is bound to a query that lists Faculty (from Faculty table, FacultyID, Faculty Name, CurrentFaculty=yes) and stores the FacultyID into the Faculty field in the Hours table. That's fine, I can do that with the combo wizard.
But here's the problem, I want to select the faculty name from cboFaculty, and that then filters cboProject to only show the current projects for that faculty member (this is from the Project Table with fields ProjectID, ProjectName, FacultyID, CurrentProject=yes). Once a project is selected, I want the ProjectID to be stored in the Project# field in the Hours table.
Please remember a newbie with Access and VBA so I need very detailed instructions.
Last edited: