PC Review


Reply
Thread Tools Rate Thread

How to calculate overdue?

 
 
Jim
Guest
Posts: n/a
 
      5th May 2010
We have a customer that has terms of June/1 or Net 60. Any orders placed
between 10/2 of the previous year and June 1 of the current year have terms
of 6/1. Orders placed between 6/2 and 10/1 have terms of Net 60. How can I
calculate this in a query?
Thanks

Jim


 
Reply With Quote
 
 
 
 
John Spencer
Guest
Posts: n/a
 
      5th May 2010
Perhaps the following

IIF(Format(OrderDate,"MMDD") Between "0602" and "1001"
,OrderDate + 60
,DateSerial(Year(OrderDate) + Abs(Format(OrderDate,"mmdd") Between "1002" and
"12/31") ,6,1))

John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County

Jim wrote:
> We have a customer that has terms of June/1 or Net 60. Any orders placed
> between 10/2 of the previous year and June 1 of the current year have terms
> of 6/1. Orders placed between 6/2 and 10/1 have terms of Net 60. How can I
> calculate this in a query?
> Thanks
>
> Jim
>
>

 
Reply With Quote
 
John Spencer
Guest
Posts: n/a
 
      6th May 2010
Whoops! Slight error in that expression.


IIF(Format(OrderDate,"MMDD") Between "0602" and "1001"
,OrderDate + 60
,DateSerial(Year(OrderDate) + Abs(Format(OrderDate,"mmdd") Between "1002" and
"1231") ,6,1))

John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County

John Spencer wrote:
> Perhaps the following
>
> IIF(Format(OrderDate,"MMDD") Between "0602" and "1001"
> ,OrderDate + 60
> ,DateSerial(Year(OrderDate) + Abs(Format(OrderDate,"mmdd") Between
> "1002" and "12/31") ,6,1))
>
> John Spencer
> Access MVP 2002-2005, 2007-2010
> The Hilltop Institute
> University of Maryland Baltimore County
>
> Jim wrote:
>> We have a customer that has terms of June/1 or Net 60. Any orders
>> placed between 10/2 of the previous year and June 1 of the current
>> year have terms of 6/1. Orders placed between 6/2 and 10/1 have terms
>> of Net 60. How can I calculate this in a query?
>> Thanks
>>
>> Jim
>>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculate days overdue for deliveries? Astrid Microsoft Access Database Table Design 1 6th Oct 2008 08:59 PM
RE: Calculate days overdue for deliveries? Astrid Microsoft Access Database Table Design 0 6th Oct 2008 11:34 AM
Re: Calculate days overdue for deliveries? Jeff Boyce Microsoft Access Database Table Design 0 3rd Oct 2008 05:01 PM
Calculate days overdue for deliveries? Astrid Microsoft Access Queries 1 3rd Oct 2008 03:50 PM
How do I calculate overdue member fees? =?Utf-8?B?Vm9sdW50ZWVybGFkeQ==?= Microsoft Access VBA Modules 2 26th Apr 2006 09:08 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:38 PM.