1 2 3 4 5 6 7 8 9 10 11 12 13
|
f Val(Dates.Value) = Val(Date.Today) Then
command.Parameters.Add(New OleDbParameter("@dates", OleDbType.Date))
'command.Parameters("@dates").IsNullable = True
command.Parameters("@dates").Value = DBNull.Value
ElseIf Val(Dates.Value) > Val(Datef.Text) Then
command.Parameters.Add(New OleDbParameter("@dates", OleDbType.Date))
MsgBox("La date de signature de l'abonnement doit être inférieure à la date fin")
Exit Sub
'End If
Else
command.Parameters("@dates").Value = CType(Dates.Text, Date)
End If |