A
Avid Fan
I have a datasheet as subform. The label on the master form always
shows the recordcount one change before the current filter.
I have clearly chosen the wrong event trigger.
Private Sub Form_ApplyFilter(Cancel As Integer, ApplyType As Integer)
MsgBox ("ApplyFilter")
Forms!frmCustomer![qryCustomer subform].Form.RecordsetClone.MoveFirst
Forms!frmCustomer![qryCustomer subform].Form.RecordsetClone.MoveLast
Forms!frmCustomer.lblRecordCountCustomer.Caption = "Record Count: " +
Str(Forms!frmCustomer![qryCustomer subform].Form.RecordsetClone.RecordCount)
Forms!frmCustomer.Refresh
End Sub
Any suggestions?
shows the recordcount one change before the current filter.
I have clearly chosen the wrong event trigger.
Private Sub Form_ApplyFilter(Cancel As Integer, ApplyType As Integer)
MsgBox ("ApplyFilter")
Forms!frmCustomer![qryCustomer subform].Form.RecordsetClone.MoveFirst
Forms!frmCustomer![qryCustomer subform].Form.RecordsetClone.MoveLast
Forms!frmCustomer.lblRecordCountCustomer.Caption = "Record Count: " +
Str(Forms!frmCustomer![qryCustomer subform].Form.RecordsetClone.RecordCount)
Forms!frmCustomer.Refresh
End Sub
Any suggestions?