I am trying to dig data from a table that has a field named begdate and another one named enddate.
They hold obvious values, but I need to have the query find the record that has a begdate that matches whatever the previous Sunday was to the day the request is made.
So, since today is Saturday 1-26-2008 I need the record that has a begdate of 1-20-2008.
How do I get the query to count back from the day of the request to the previous Sunday and then figure out that date to come up with my critera and I need to consider there will be times it crosses months - e.g. the month changes in the middle of the week.
Thanks in advance for the help.
sprdthword 0 Newbie Poster
Zadj 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.