Login
Popular Downloads
(Example Reports)
(Example Reports)
(Example Date and Time)
(Example Forms)
(Example Forms)
(Example Forms)
(Templates)
| Displaying specific dates |
|
|
|
| Written by Boyd Trimmell |
Displaying specific datesTo display specific dates, you can use the DateSerial() function to manipulate the day, month, and year portions of a date. For example, you can use the following expressions in the ControlSource property of a text box or in a query to return specific dates:
Examples of how to used the about code: In a query you could use this criteria to get all the records with a date in the current month: Where [MyDateField] Between DateSerial(Year(Date()), Month(Date()), 1) and DateSerial(Year(Date()), Month(Date()) + 1, 0) In a query you could use this criteria to get all the records with a date from the previous month: Where [MyDateField] Between DateSerial(Year(Date()), Month(Date())-1,1) and DateSerial(Year(Date()), Month(Date()),0)
|
Sponsored Links
Polls




