I am trying to make a custom navigation label to display record Y of X.
Dev Ashish's code placed in the OnCurrent Event:
Private Sub Form_Current()
If Me.NewRecord Then
Me!lblNavigate. Caption = "New Record"
Else
With Me.RecordsetClo ne
.Bookmark = Me.Bookmark
Me!lblNavigate. Caption = "Record " & _
.AbsolutePositi on + 1 _
& " of " & .RecordCount
End With
End If
End Sub
I have a Sort Option Box that allows the user to select custom sorts.
I placed the following code in the AfterUpdate Event of the option box:
Select Case Me.optSortRecor ds.Value
Case 1
Me.FilterOn = False
Case 2
Me.Filter = "[DelegatedTo] Is Null"
Me.FilterOn = True
Case 3
Me.Filter = "[DelegatedTo] Is Not Null"
Me.FilterOn = True
Case 4
Me.Filter = "[DelegatedTo] Is Not Null"
Me.FilterOn = True
End Select
However, when a option is selected, it doesnt appear to update the
custom navigation count. I even tried placing Dev's code in the the
AfterUpdate code of the option box, with no luck.
Any suggestions?