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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Range problem

Status
Not open for further replies.

tyrahat

Technical User
Apr 23, 2003
9
0
0
US
Using Crystal 8.5 with Sybase 12

I have a field: LSTCNTDT (last contact date) for my customers. I want to query and show the customers who have had a last contact date of <=5 days ago based on today's CURRENTDATE.

I'm stumpted. I've tried to do a Record Selection statement and use Between for the ranges but it's not working.

Help is welcome and appreciated!!

Thanks!!
 
As stated, I tried a Record Selection formula but it didn't work.

Stumped as to how to do the formula.

Thanks

 
Post the formula you tried to use, it may just need some tweaking.
 
If you mean you want dates within the last five days including today's date, try:

{table.lstcntdt} >= currentdate - 4

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top