C
Chris Freeman
I have a form with timesheet fields, Sun - Sat, a field called Weekending,
which is the Friday of each week.
What I'm trying to do is the user opens the form, the Load code runs, and at
the bottom is code:
Dim WE As Date
Do Until rst.EOF
If rst.Fields![WeekEnding] >= Date Then
WE = rst.Fields![WeekEnding]
Me.cbo_WeekEnding = rst.Fields![WeekEnding]
Exit Do
End If
rst.MoveNext
Loop
DoCmd.ApplyFilter "Me.Weekending=" & WE
That is supposed to filter the data so that the form would display either a
blank entry field, no records, or display previous time entries based on this
week.
Currently the ApplyFilter does nothing, the form opens and displays all
records. If I click on a date and filter by by selection, it works perfectly,
but I can't get the applyfilter to kick in.
Any suggestions???
which is the Friday of each week.
What I'm trying to do is the user opens the form, the Load code runs, and at
the bottom is code:
Dim WE As Date
Do Until rst.EOF
If rst.Fields![WeekEnding] >= Date Then
WE = rst.Fields![WeekEnding]
Me.cbo_WeekEnding = rst.Fields![WeekEnding]
Exit Do
End If
rst.MoveNext
Loop
DoCmd.ApplyFilter "Me.Weekending=" & WE
That is supposed to filter the data so that the form would display either a
blank entry field, no records, or display previous time entries based on this
week.
Currently the ApplyFilter does nothing, the form opens and displays all
records. If I click on a date and filter by by selection, it works perfectly,
but I can't get the applyfilter to kick in.
Any suggestions???