Learn how to use the Access Date function with syntax and examples.
The Microsoft Access Date function returns the current system date.
The syntax for the Microsoft Access Date function is:
There are no parameters or arguments for the Date function.
The Date function can be used in the following versions of Microsoft Access:
Date() Result: '22/11/2003' (your value will differ as it is the current system date)
The Date function can be used in VBA code in Microsoft Access. For example:
Dim LDate As String LDate = Date
In this example, the variable called LDate would now contain the current system date.
You can also use the Date function in a query in Microsoft Access.