B
Brian
I am hoping someone can tell me why my code behind my option group doesn't
work? I am trying to filter my form by dates in the [Scheduled_End] field.
Option 1, All work fine, Option 2 continues to show all records, and Option 3
give me a Run-time error '424': Object required.
I have tried a few other things without success so I thought I would ask so
I can learn. Here is my code.
Private Sub Frame123_AfterUpdate()
If Frame123 = 1 Then 'All
Me.FilterOn = False
ElseIf Frame123 = 2 Then 'Past Due
Me.Filter = [Scheduled_End] <= Now()
Me.FilterOn = True
Else: Frame123 = 3 'Not Planned
Me.Filter = [Scheduled_End] Is Null
Me.FilterOn = True
End If
Me.Requery
End Sub
work? I am trying to filter my form by dates in the [Scheduled_End] field.
Option 1, All work fine, Option 2 continues to show all records, and Option 3
give me a Run-time error '424': Object required.
I have tried a few other things without success so I thought I would ask so
I can learn. Here is my code.
Private Sub Frame123_AfterUpdate()
If Frame123 = 1 Then 'All
Me.FilterOn = False
ElseIf Frame123 = 2 Then 'Past Due
Me.Filter = [Scheduled_End] <= Now()
Me.FilterOn = True
Else: Frame123 = 3 'Not Planned
Me.Filter = [Scheduled_End] Is Null
Me.FilterOn = True
End If
Me.Requery
End Sub