dbTalk Databases Forums  

DateDiff, Sum & Negative numbers?

comp.databases.ms-access comp.databases.ms-access


Discuss DateDiff, Sum & Negative numbers? in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Kevin
 
Posts: n/a

Default DateDiff, Sum & Negative numbers? - 11-30-2004 , 04:48 PM






Group By - Client
Sum - Past:IIF(DateDiff("d",[InvoiceDate],Date())>30,[InvoiceNetTotal],0)
Sum - Current:IIF(DateDiff("d",[InvoiceDate],Date())<31,[InvoiceNetTotal],0)

Works for positive numbers, but if InvoiceNetTotal = ($4.00) and
InvoiceNetTotal = ($2.00) it should give me ($6.00) providing both
Invoice Dates are > 30 or <31. I checked the Invoice Dates and these
amounts should be showing.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.