I use this code to check a date entry but duibt it work correct….
Private Sub CommandButton1_Click()
If Me.TextBox1.Text > “” Then
If Not IsDate(Format(Me.TextBox1.Text, “DD/MM/YYYY”)) Then
Me.TextBox1.Text = “”
MsgBox (“DATA ERRATA! INSERIRE NEL FORMATO GG/MM/AAAA”), vbCritical, “MONITORAGGIO”
Exit Sub
End If
Else
MsgBox (“INSERIRE UNA DATA VALIDA! NEL FORMATO GG/MM/AAAA”), vbCritical, “MONITORAGGIO”
End If
End Sub
ù