Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting Crystal to return last six months
Message
General information
Forum:
Visual FoxPro
Category:
Crystal Reports
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00993658
Message ID:
00993720
Views:
13
>Where shipdt >= dateadd(m,-6,currdate) gives me a date overflow error.

Jim,

I don't know if this is the problem, but..

The Crystal documentation states the DateAdd() returns a DateTime value. You need to convert that result into a Date value by wrapping the DateAdd() inside a CDate() to compare the result to another date.

Laterness,
Jon
Jon Rosenbaum
Devcon Drummer
Previous
Reply
Map
View

Click here to load this message in the networking platform