Murray Brown
asked on
Access VBA Get dates for last month
Hi. If the following code finds the start and end of last year, what similar code doI use to find the start and end of last month
txtStartDate = DateSerial(Year(Date) - 1, 1, 1)
txtEndDate = DateSerial(Year(Date) - 1, 12, 31)
txtStartDate = DateSerial(Year(Date) - 1, 1, 1)
txtEndDate = DateSerial(Year(Date) - 1, 12, 31)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks very much
You're welcome! Glad I was of help :)
http://www.theaccessweb.co
https://utteraccess.com/wi
http://www.utteraccess.com