Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: need help with a date problem please, Post Reply Post New Topic
Author Message
robert
Newbie
Newbie
Avatar

Joined: 18 Nov 2009
Location: United Kingdom
Online Status: Offline
Posts: 15
Quote robert Replybullet Topic: need help with a date problem please,
     Posted: 25 Nov 2009 at 8:59am
hi guys
 
i need help with a simple yet confusing problem.
 
i need in my select criteria to say "select all records from the stock table where the date created was within the last 7 days??
 
 
i know this is quite simple but im new to this and its ragging my head apart.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 25 Nov 2009 at 9:16am
{table.datefield} in dateadd('d',-7,currentdate) to currentdate

Edited by DBlank - 25 Nov 2009 at 9:16am
IP IP Logged
robert
Newbie
Newbie
Avatar

Joined: 18 Nov 2009
Location: United Kingdom
Online Status: Offline
Posts: 15
Quote robert Replybullet Posted: 26 Nov 2009 at 1:18am
thanks, that works a treat thank you very much.
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum