Kayleigh
Member
- Local time
- Today, 18:24
- Joined
- Sep 24, 2020
- Messages
- 709
Whilst automating parts of a data entry form, I have written code for a command button to enter today's date and then move onto the next field but a run-time error always occurs. Can you help?
This is the code:
Private Sub cmdToday_Click()
Me.fldDate = Date
DoCmd.GoToControl (Me.fldSession)
End Sub
This is the code:
Private Sub cmdToday_Click()
Me.fldDate = Date
DoCmd.GoToControl (Me.fldSession)
End Sub