garyrobbins
asked on
How do I select last date of previous month?
How do I alter the below to select last day of previous month rather than current date?
0-365: Sum(((IIf([ORDER_DATE]>=Da te()-365,[ AMOUNT_BIL LED],0))))
0-365: Sum(((IIf([ORDER_DATE]>=Da
And this should come in handy:
Functions for calculating and for displaying Date/Time values in Access:
http://support.microsoft.com/kb/210604
mx
Functions for calculating and for displaying Date/Time values in Access:
http://support.microsoft.com/kb/210604
mx
First day of current month can be found with DateSerial(Year(Date()), Month(Date()), 1)
Last day of previous month is DATEAD that -1
Kelvin
Last day of previous month is DATEAD that -1
Kelvin
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you both, first for putting in the thread like that, Joe and the explanation HNASR. Working Great.
Welcome!
DateSerial(Year(Date()), Month(Date()),0)
mx