Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

show last week with sql-satement

Status
Not open for further replies.

230173

MIS
Jun 22, 2001
208
SG
Hi,

Can somebody help me with a sql-statement that i need to show the last week of a tabel with a date field.

i've already tried:
select BLAH from Blah where DateField between
#DateAdd("d",-6,Date)# and #Date#

and also

...where datediff(&quot;d&quot;,datefield,now()) <= 7

 
How about something like
startdate=date-7
enddate=date

select BLAH from Blah where DateField between
#startdate# and #enddate# Saturday 12.00
im6.gif
im2.gif
im2.gif
20.00
im5.gif
im4.gif
im7.gif
3.00am
im8.gif
Sunday [img http
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top