Private Sub SpinButton1_SpinDown()
Dim datevar As Date
If Me.TextBox1.Text <> "" Then
On Error Resume Next
datevar = DateValue(Me.TextBox1.Text)
Else
datevar = Date
End If
Me.TextBox1.Text = (datevar - 1)
End Sub
Private Sub SpinButton1_SpinUp()
If Me.TextBox1.Text <> "" Then
On Error Resume Next
datevar = DateValue(Me.TextBox1.Text)
Else
datevar = Date
End If
Me.TextBox1.Text = (datevar + 1)
End Sub
Dim datevar As Date
If Me.TextBox1.Text <> "" Then
On Error Resume Next
datevar = DateValue(Me.TextBox1.Text)
Else
datevar = Date
End If
Me.TextBox1.Text = (datevar - 1)
End Sub
Private Sub SpinButton1_SpinUp()
If Me.TextBox1.Text <> "" Then
On Error Resume Next
datevar = DateValue(Me.TextBox1.Text)
Else
datevar = Date
End If
Me.TextBox1.Text = (datevar + 1)
End Sub