A
Allen_N
I have a form with 2 subforms. The current record in subform1 determines the
filter applied to subform2. However, if I can't get subform2 to display
filtered data when the main form loads, because the statement
Me.Parent.subfrmKitComps.Form.Filter = "KitItem = '" & StrCurrentKit & "'"
produces the error
Run-time error 2455: "You entered an expression that has an invalid
reference to the property Form/Report."
The filtering statement is fine on subsequent calls, but has to be preceded
by "On Error Resume Next" to avoid crashing on start-up. So, the form always
loads with ~39,000 records in subform2 instead of ~10. What should I be doing?
Thanks!
filter applied to subform2. However, if I can't get subform2 to display
filtered data when the main form loads, because the statement
Me.Parent.subfrmKitComps.Form.Filter = "KitItem = '" & StrCurrentKit & "'"
produces the error
Run-time error 2455: "You entered an expression that has an invalid
reference to the property Form/Report."
The filtering statement is fine on subsequent calls, but has to be preceded
by "On Error Resume Next" to avoid crashing on start-up. So, the form always
loads with ~39,000 records in subform2 instead of ~10. What should I be doing?
Thanks!