Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Posted: 28 Jun 2007 at 11:17am
Are you doing a record selection formula? If so, just pick the field and in the condition dropdown box pick the Is Between criteria. If this isn't what you are looking for, then please post more info so we know where in the report you want this in and what its purpose is.
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
Joined: 19 Jun 2007
Location: United States
Online Status: Offline
Posts: 432
Posted: 28 Jun 2007 at 11:54am
You may want to look at the DatePart function in CR help. You may have to use a formula to parse out the day of week from the date , then do a compare to your range of days. Then do the same for the time and do a compare to range of times.
'return whether between Thursday 8pm and Sunday 8pm IF (d = CrThursday and t >= ctime(20, 0, 0)) or d = CrFriday or d = CrSaturday or (d = CrSunday and t < ctime(8, 0, 0)) THEN FORMULA= "Code if True" Else FORMULA= "Code if False" END IF
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