Assuming you have a "Dates" field in the table that you store the data, and they are all formatted the same then you can have a query where under the criteria for the dates field have:
Code:
between [START DATE] and [END DATE]
When this is ran you will be asked for a start date, and an end date. Access will then display all dates that are in the table between the criteria you enter.
If you were after a way to do this without having every single date entered into a table then I suggest you re-post in the VBA forum (Forum707). I'm still classed as a newbie with VBA so I cannot help!
Hope this helps and Good Luck,
Steve. If a post help you out then give it a star!
Sub dates()
dim lCounter as long
for lCounter = Me("txtStartDt" to Me("txtStopDt"
Debug.Print Format(lCounter, "m/d/yy"
next lCounter
End Sub
(you could of course add the dates to a control on a form, or whatever...)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.