I am having trouble filtering my subform.
mainForm, subForm, cboBox
My cboBox has a list, "All, A, B, C"
When All is selected I want the subForm category to display A,B and C...
So when A is selected, i would like for the AfterUpdate() function to compare "A" to the Category field in the subForm.
I have been reading through forums for the last two days with out anyluck.
I found this online... but I can not apply it to my database
"Dim MySQL As String
MySQL = "SELECT [TblLessonList].[LessonID],[tblLessonList].[LessonName] FROM TblLessonList WHERE DivID = " & Me.cboDivSelect
Me.subfrm_LessonCardLessons.Form.cboLessonSelect.RowSource = MySQL"
Thanks for the help.
Jeff
mainForm, subForm, cboBox
My cboBox has a list, "All, A, B, C"
When All is selected I want the subForm category to display A,B and C...
So when A is selected, i would like for the AfterUpdate() function to compare "A" to the Category field in the subForm.
I have been reading through forums for the last two days with out anyluck.
I found this online... but I can not apply it to my database
"Dim MySQL As String
MySQL = "SELECT [TblLessonList].[LessonID],[tblLessonList].[LessonName] FROM TblLessonList WHERE DivID = " & Me.cboDivSelect
Me.subfrm_LessonCardLessons.Form.cboLessonSelect.RowSource = MySQL"
Thanks for the help.
Jeff