S
serviceman via AccessMonster.com
Hi gang,
One more little problem to work here:
I have a form 'formadmintestmain' with 3 tab pages on it. On one of these
pages is a subform 'formadmintestpage1' which gets its' data from a query in
the properties sheet. When I open the main form and select a test to
administer, the subform shows all of the students in attendance for that test.
What I would like to do is be able to filter the students in the subform
using a pair of combo boxes on the main form against one of the fields in the
subform query. The field I want to filter on is RANK_ID. I tried this:
Dim FiltVal As String
FiltVal = Me.Combo33.Value
Me.formadmintestpage1.Form.Filter = "RANK_ID='" & FiltVal & "'"
Me.formadmintestpage1.Form.FilterOn = True
in the after_update field to pass a single selection filter in, but I keep
getting 'error 107: the prefix formadmintestpage1 is not a valid table name'
error. I am using SQL server on this project, and I think the problem is that
I am trying to pass the filter in an MSAccess format. I am truly stuck. I
would like to be able to filter a range BETWEEN using two combo boxes; I
assume I will also have to account for when one or the other box is left NULL.
Help!
Andy
One more little problem to work here:
I have a form 'formadmintestmain' with 3 tab pages on it. On one of these
pages is a subform 'formadmintestpage1' which gets its' data from a query in
the properties sheet. When I open the main form and select a test to
administer, the subform shows all of the students in attendance for that test.
What I would like to do is be able to filter the students in the subform
using a pair of combo boxes on the main form against one of the fields in the
subform query. The field I want to filter on is RANK_ID. I tried this:
Dim FiltVal As String
FiltVal = Me.Combo33.Value
Me.formadmintestpage1.Form.Filter = "RANK_ID='" & FiltVal & "'"
Me.formadmintestpage1.Form.FilterOn = True
in the after_update field to pass a single selection filter in, but I keep
getting 'error 107: the prefix formadmintestpage1 is not a valid table name'
error. I am using SQL server on this project, and I think the problem is that
I am trying to pass the filter in an MSAccess format. I am truly stuck. I
would like to be able to filter a range BETWEEN using two combo boxes; I
assume I will also have to account for when one or the other box is left NULL.
Help!
Andy