ezlearning
MIS
I created a form that contains a synchronized combo box (Access 2007), based on an example that Microsoft has and it works.
A user can Select Box 1 and in box 2 you'll only see the items that fall under that choice made in Box 1.
I am new to building advanced Forms so I don't know how to incorporate it so I can use it for updating my table. I think it has something to do with the field being "unbound" to the table?
Here is the detail:
I have 4 tables.
Applications = ApplicationID, Applications
Profiles = ProfileID, Applications, ProfilesNames
Departments = DeptID, DeptName
DeptProfiles (Juntion table) = ApplicationID, DeptID, ProfileID, ProfileID.value (this is a multi-selectable field)
This is the code I used to run it.
Private Sub cboCategories_AfterUpdate()
Me.cboProfiles.RowSource = "SELECT ProfileName FROM" & _
" Profiles WHERE ApplicationID = " & Me.cboApplication & _
" ORDER BY ProfileName"
Me.cboProfiles = Me.cboProfiles.ItemData(0)
End Sub
My goal: To have a Form that is populating the DeptProfiles (junction table). Right now I have a simple form, but as my profile table grows there will be too many profiles for a user to pick from.
A user can Select Box 1 and in box 2 you'll only see the items that fall under that choice made in Box 1.
I am new to building advanced Forms so I don't know how to incorporate it so I can use it for updating my table. I think it has something to do with the field being "unbound" to the table?
Here is the detail:
I have 4 tables.
Applications = ApplicationID, Applications
Profiles = ProfileID, Applications, ProfilesNames
Departments = DeptID, DeptName
DeptProfiles (Juntion table) = ApplicationID, DeptID, ProfileID, ProfileID.value (this is a multi-selectable field)
This is the code I used to run it.
Private Sub cboCategories_AfterUpdate()
Me.cboProfiles.RowSource = "SELECT ProfileName FROM" & _
" Profiles WHERE ApplicationID = " & Me.cboApplication & _
" ORDER BY ProfileName"
Me.cboProfiles = Me.cboProfiles.ItemData(0)
End Sub
My goal: To have a Form that is populating the DeptProfiles (junction table). Right now I have a simple form, but as my profile table grows there will be too many profiles for a user to pick from.