Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Between Dates

Status
Not open for further replies.

Rjconrep

Technical User
Oct 24, 2000
66
US
I have a text box on a vacation report that holds a beginning date and a text box which holds an end date.
Beginning date is the beginning of vacation
End date being the end of vacation.
I have another text field to show that the person is on vacation but I don't want it to show until the beginning date equals the current date and I want the same text block to equal nothing when the current date equals the End date. I know that this is probably a simple statement but it is not coming to me. I am drawing a blank.
HELP!
 
Maybe something like:

Dim mydate As Date
mydate = DATE
If mydate >= BeginingDate And mydate <= EndDate Then
'Do something to the vacation box
Else:
'Do something else to the vacation box
End If
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top