megatronixs
Registered User.
- Local time
- Today, 19:15
- Joined
- Aug 17, 2012
- Messages
- 719
Hi all,
I try to build a filter via vba to filter a subform in datasheet view to show all dates after today's date.
The below is simply not working and after a lot of trying around still nothing. Any clue where I go wrong?
Greetings.
I try to build a filter via vba to filter a subform in datasheet view to show all dates after today's date.
The below is simply not working and after a lot of trying around still nothing. Any clue where I go wrong?
Code:
Private Sub btn_future_events_Click()
Dim Filter As String
Dim DateToday As Date
DateToday = ">= Date"
Filter = "[training_date_start] = DateToday"
Me!frm_create_event_subform.Form.Filter = Filter
Me!frm_create_event_subform.Form.FilterOn = True
End Sub
Greetings.