Record Count after filter update. VBA

Neilster

Registered User.
Local time
Today, 14:29
Joined
Jan 19, 2014
Messages
218
Hi

I have this on the Form - On Current Event to show how many records I have on the Form, However when the employee filters the combo box's I want the record count to show the current records when they finish each filter. At the moment it just shows random numbers.

Please help if you can :banghead:

PHP:
 Private Sub Form_Current()
  
     If Me.NewRecord Then
        Me.lblRecordCount.Caption = "New Record"
 
    Else
        Me.lblRecordCount.Caption = _
         "Record " & Me.CurrentRecord & " of " & Me.Recordset.RecordCount
 
    End If
    
End Sub
 
Try RecordSetClone and in the AfterUpdate event of the ComboBox, use the same code.
 
Hi

As in like this ?

Private Sub Form_Current()

If
Me.
NewRecord Then
Me
.lblRecordCount.Caption =
"New Record"

Else
Me.lblRecordCount.Caption =
_
"Record " & Me.CurrentRecord & " of " & Me.RecordsetClone.
RecordCount

End
If

End Sub


 
Yes and also in the control_AfterUpdate()
 
Hi

I've tried and it still doesn't work, that said my combo box's are in the form header and not in the form, would this makes a difference? silly question I know.....
 

Users who are viewing this thread

Back
Top Bottom