Avatar of Murray Brown
Murray Brown
Flag for United Kingdom of Great Britain and Northern Ireland 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)
Microsoft AccessVBA

Avatar of undefined
Last Comment
Noah

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Noah

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

Murray Brown

ASKER
thanks very much
Noah

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