V
viddom
I wrote this code when I click a selection field, but it does not work.Can
you tell me where do I have the mistake?
Private Sub AttendClick_Click()
If Me.AttendClick = True Then
'Here the field Regist-Datum must be updated to the current date
Me.[Regist-Datum] = Date
Else
'Here the field Regist-Datum must be empty
Me.[Regist-Datum].Value = ""
End If
End Sub
you tell me where do I have the mistake?
Private Sub AttendClick_Click()
If Me.AttendClick = True Then
'Here the field Regist-Datum must be updated to the current date
Me.[Regist-Datum] = Date
Else
'Here the field Regist-Datum must be empty
Me.[Regist-Datum].Value = ""
End If
End Sub