macleodjb
Technical User
- Aug 27, 2007
- 10
I am new to coding with vba in access. I have a checkbox and a textbox. I want to be able to check the checkbox and it sets todays date in the textbox. How can i do this? Thanks in advance.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
me.textbox1.text = format(date, "yyyy/mm/dd")
Private Sub YourCheckBox_Click()
If YourCheckBox Then
Me.textbox1.Value = Format(Date, "yyyy/mm/dd")
End If
End Sub
Private Sub YourTextBoxName_DblClick(Cancel As Integer)
Me.ActiveControl = Date
End Sub