G
Guest
I have 2 labels that are supposed to change the query in a subform. I would
like lblAllDates to show all record (no filter on), and then lblFilterDates
to show all records after the current date. Can someone let me know what I
am doing
wrong? I think it has something to do with --"VacationDate > " & Date--.
---------------------------------------
Private Sub lblAllDates_Click()
Me.sfrmVacation.Form.Filter = vbNullString
Me.sfrmVacation.Form.FilterOn = False
Me.lblAllDates.Visible = False
Me.lblFilterDates.Visible = True
End Sub
Private Sub lblFilterDates_Click()
Me.sfrmVacation.Form.FilterOn = True
Me.sfrmVacation.Form.Filter = "VacationDate > " & Date
Me.lblAllDates.Visible = True
Me.lblFilterDates.Visible = False
End Sub
--------------------------------------
like lblAllDates to show all record (no filter on), and then lblFilterDates
to show all records after the current date. Can someone let me know what I
am doing
wrong? I think it has something to do with --"VacationDate > " & Date--.
---------------------------------------
Private Sub lblAllDates_Click()
Me.sfrmVacation.Form.Filter = vbNullString
Me.sfrmVacation.Form.FilterOn = False
Me.lblAllDates.Visible = False
Me.lblFilterDates.Visible = True
End Sub
Private Sub lblFilterDates_Click()
Me.sfrmVacation.Form.FilterOn = True
Me.sfrmVacation.Form.Filter = "VacationDate > " & Date
Me.lblAllDates.Visible = True
Me.lblFilterDates.Visible = False
End Sub
--------------------------------------