S
shannaj via AccessMonster.com
Help! I am having trouble synchronizing two combo boxes. The first one is
Departments and the 2nd one is models. I need for the 2nd combo box to
display the appropriate models when a selection in the Departments box is
made. I have read up and have been trying the model that is advised to use
on the Microsoft website, but it does not work. It pops up a perameter value
box. With the formula that is given, it is hard to tell when to insert a
table name or field name. Can someone please advise what I am doing wrong?
I am just not understanding this one.
Private Sub Departments_AfterUpdate()
Me.Models.RowSource = "SELECT Models FROM" & _
" tblModels WHERE DeptID =" & Me.Departments & _
" ORDER BY Models"
Me.Models = Me.Models.ItemData(0)
End Sub
Departments and the 2nd one is models. I need for the 2nd combo box to
display the appropriate models when a selection in the Departments box is
made. I have read up and have been trying the model that is advised to use
on the Microsoft website, but it does not work. It pops up a perameter value
box. With the formula that is given, it is hard to tell when to insert a
table name or field name. Can someone please advise what I am doing wrong?
I am just not understanding this one.
Private Sub Departments_AfterUpdate()
Me.Models.RowSource = "SELECT Models FROM" & _
" tblModels WHERE DeptID =" & Me.Departments & _
" ORDER BY Models"
Me.Models = Me.Models.ItemData(0)
End Sub