I have a time keeping table has login and log out dates and time. What I want to do is when from a form I click a report button it opens up but only shows the data from the week we are in.
Somewhere in there you should find functions that will return the first day of the current week and the last day of the current week. You can use those in your query to have it always return the current week's data.
These look like functions I copied from a response of yours Paul.
Code:
Function getWeekBegin(pDate As Date) As Date
'-- convert pDate to the previous Monday's Date
getWeekBegin = DateAdd("d", 1 - Weekday(pDate, vbMonday), pDate)
End Function
Function getWeekEnd(pDate As Date) As Date
'-- convert pDate to the next Sunday's Date
getWeekEnd = DateAdd("d", 7 - Weekday(pDate, vbMonday), pDate)
End Function