G
Guest
good evening,
Here is something I am trying to do, but can't seem to get a handle on. I'm
am hoping for some guidance and direction.
We have a table called Projects. In it we keep track of hours worked on all
projects and hours worked by employees on those projects.
I have a listbox that lists these timeframes: Today, thisweek, thismonth,
last week, lastmonth, custom.
The listbox is on a form and I want the data to show up on the subform.
I want to be able to click on THISWEEK and have all the records for this
week to show up. OR LASTMONTH and have all of last months records to show
up.
I would also like to be able to create a "CUSTOM" search. All the records
between this date and that date.
I understand the logic behind this, but not how to get it done.
THISWEEK = If today is thursday then all dates from today minus 4, meaning
go back 4 days and show all those records to present. Wednesday would be
minus 3, etc.
LASTMONTH = todays's date, extract the month, subtract 1, show all the
records for this month minus 1 or last month.
Is this sort of logic correct? Am I thinking in the right direction?
If anyone out there could get me started it would be a huge help.
Thanks so much.
Lisa B.
Here is something I am trying to do, but can't seem to get a handle on. I'm
am hoping for some guidance and direction.
We have a table called Projects. In it we keep track of hours worked on all
projects and hours worked by employees on those projects.
I have a listbox that lists these timeframes: Today, thisweek, thismonth,
last week, lastmonth, custom.
The listbox is on a form and I want the data to show up on the subform.
I want to be able to click on THISWEEK and have all the records for this
week to show up. OR LASTMONTH and have all of last months records to show
up.
I would also like to be able to create a "CUSTOM" search. All the records
between this date and that date.
I understand the logic behind this, but not how to get it done.
THISWEEK = If today is thursday then all dates from today minus 4, meaning
go back 4 days and show all those records to present. Wednesday would be
minus 3, etc.
LASTMONTH = todays's date, extract the month, subtract 1, show all the
records for this month minus 1 or last month.
Is this sort of logic correct? Am I thinking in the right direction?
If anyone out there could get me started it would be a huge help.
Thanks so much.
Lisa B.