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

Today + 2

Status
Not open for further replies.

drinker

Technical User
May 9, 2006
57
US
What would the formula be to show all Customer Desired Shipped Dates from curent date and everything up to two days out? Thank You.

{CUSTOMER_ORDER.DESIRED_SHIP_DATE}
 
In selection,
Code:
{CUSTOMER_ORDER.DESIRED_SHIP_DATE} in [currentdate to currentdate+2]

This is for Crystal 10. There is also DateAdd for more complex operations, but +2 for a date is assumed to be plus two days

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
You did not state your crystal version, which can affect the answer. However in crystal 8 and newer, in the record selection formula try this:

{CUSTOMER_ORDER.DESIRED_SHIP_DATE} in CurrentDate to Dateadd("d",2,CurrentDate)

Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports

"A fine is a tax for doing wrong. A tax is a fine for doing well.
" - unknown
 
Thanks! Currently, using this formula my report shows only current date , but I,m sure this is what I need. I am using Crystal 8.5.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top