G
Guest
Hi.
I have a form with a subform. When a certain control (txtSCRID) changes
value on the form, a different filter is applied to the subform. The
subform's default view is DataSheet and rows from a table are displayed in
it. This works well except on the subform at the bottom where it says "Record
1 of 4 (Filtered)" (when I have 4 rows).
When 3 rows are displayed in the subform, it will display the count of rows
from the previous recordset until I hit the right arrow to get the next row
and then I'll see "Record 1 of 3 (Filtered)".
I'm using this code :
Private Sub txtSCRID_LostFocus()
Me.[SCR_Links_Subform].Form.FilterOn = True
If Not IsNull(Me.txtSCRID) Then
Me.[SCR_Links_Subform].Form.Filter = "LinkedSCRorDefect <> "
& Me.txtSCRID
End If
End Sub
I get the correct rows coming up on the subform. What's incorrect is the
count of rows returned that shows up at the bottom of the grid on the
subform. Once I hit the right arrow it then displays correctly.
Any suggestions will be greatly appreciated.
Rita
I have a form with a subform. When a certain control (txtSCRID) changes
value on the form, a different filter is applied to the subform. The
subform's default view is DataSheet and rows from a table are displayed in
it. This works well except on the subform at the bottom where it says "Record
1 of 4 (Filtered)" (when I have 4 rows).
When 3 rows are displayed in the subform, it will display the count of rows
from the previous recordset until I hit the right arrow to get the next row
and then I'll see "Record 1 of 3 (Filtered)".
I'm using this code :
Private Sub txtSCRID_LostFocus()
Me.[SCR_Links_Subform].Form.FilterOn = True
If Not IsNull(Me.txtSCRID) Then
Me.[SCR_Links_Subform].Form.Filter = "LinkedSCRorDefect <> "
& Me.txtSCRID
End If
End Sub
I get the correct rows coming up on the subform. What's incorrect is the
count of rows returned that shows up at the bottom of the grid on the
subform. Once I hit the right arrow it then displays correctly.
Any suggestions will be greatly appreciated.
Rita