Logo

My Access Tips for Custom Microsoft Access

Application Development

by Matthew V Carmichael


Need Help?

My Tips


Links

Resources
Quick Tip Details
Question:
How can the user automatically enter the date/time values by double clicking the field?
Answer:
Add code to the double click event of the textbox:
Code:
Private Sub YourField_DblClick(Cancel As Integer)
       Me.YourField = Now() ' Date & Time
       'Me.YourField = Date() 'Date Only
End Sub