I have a form that doesn't allow the user to print a label if the data for the label has not been updated/verified in the last two days. It is a simple If/Then statement based on a date/time stamp field. I have been asked to change this to they can't print if it has not been updated each Wednesday. In other words, if it is Thursday and the info has not been updated since the previous Wed, they can't print. I have never worked with days of the week and can't get a grip on this one. Here is what I am currently using(so simple):
If Me.Date.Value = Now() Then
Me.Command72.Enabled = True
ElseIf Me.Date.Value > Now() - 2 Then
Me.Command72.Enabled = True
Else
Me.Command72.Enabled = False
End If
Thanks
John Green
If Me.Date.Value = Now() Then
Me.Command72.Enabled = True
ElseIf Me.Date.Value > Now() - 2 Then
Me.Command72.Enabled = True
Else
Me.Command72.Enabled = False
End If
Thanks
John Green