gracie1972
asked on
ORDER BY in Cascading Combo Boxes in Access 2007
Here is my Code for my cascading combo boxes in Access, all I want to do is sort by Project in my second combo box. Order by is not working.....
-------------------------- ---------- ---------- ---------- ---------- ---------- ---------- --------
Private Sub ProjectType_AfterUpdate()
Me.Project.RowSource = " SELECT ProjectID,Project, ProjectTypeID" _
& " FROM tblProjects" _
& " WHERE ProjectTypeID=" & Me.ProjectType
End Sub
-------------------------- ---------- ---------- ---------- ---------- ---------- ---------- ----------
--------------------------
Private Sub ProjectType_AfterUpdate()
Me.Project.RowSource = " SELECT ProjectID,Project, ProjectTypeID" _
& " FROM tblProjects" _
& " WHERE ProjectTypeID=" & Me.ProjectType
End Sub
--------------------------
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you, both features worked Awesome :-)
Thanks for the grade. Good luck with your project. -Jim
Me.Project.SetFocus
Me.Project.DropDown