I am having problems with my code. I am trying to look at a date on a form and show me the weekday number for that date on the same form different text box. I am using MS ACCESS 2013 VBA
Code:
Private Sub TxtAppointmentDate_BeforeUpdate(Cancel As Integer) Dim D As Date Dim W As Integer D = (TxtAppointmentDate) W = Weekday(D) Me.test = W End Sub
Comment