Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Summing Billed and Collected
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01512706
Message ID:
01512720
Views:
40
I just tried out the DATE() function. I never knew you could use parameters with it. I always used it as DATE().
Thanks,
Cecil

>If you want to use different dates in the sums, use an IIF() expression as what to sum, something like:

>SUM(IIF(BETWEEN(bill_date, DATE(2010,1,1), DATE(2010,1,31)), bill_prem, 0)

>I also changed your CTOD() to use DATE(), which is much safer.

>Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform