About
Pricing
Community
Teams
Start Free Trial
Log in
Murray Brown
asked on
12/8/2019
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)
Microsoft Access
VBA
4
1
Last Comment
Noah
8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Noah
12/8/2019
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Daniel Pineault
12/8/2019
For date calculations, you may like to review
http://www.theaccessweb.co
m/datetime
/date0007.
htm
https://utteraccess.com/wi
ki/Categor
y:DateTime
_Functions
http://www.utteraccess.com
/forum/ind
ex.php?sho
wtopic=321
493
Murray Brown
12/8/2019
ASKER
thanks very much
Noah
12/8/2019
You're welcome! Glad I was of help :)
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
http://www.theaccessweb.co
https://utteraccess.com/wi
http://www.utteraccess.com