Date

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is their a way given a user suplied date field and take a look at it and take data from the last day of the previous month based on the user entered date. 10/01 and 10/15 would look at 9/30 for example
 
Assuming that your field is named DateField:

DaetOfLastDayOfPreviousMonth = DateSerial(Year([DateField]),
Month([DateField]), 0)


--
Ken Snell
<MS ACCESS MVP>

George Schneider said:
Is their a way given a user suplied date field and take a look at it and
take data from the last day of the previous month based on the user entered
date. 10/01 and 10/15 would look at 9/30 for example.
 
Back
Top