Hello, I am looking for a code that will be showing the status of the work I’ve got.
I have 4 text boxes on the form: StartDate ; EndDate ; CurrentDate and WorkStatus. The StartDate and EndDate are linked to the tblWorks.
As the default value for CurrentDate I have =Date() .
I need a code that will do something like this:
If
StartDate < CurrentDate and EndDate < CurrentDate THEN WorkStatus = “Work Done”
If
StartDate < CurrentDate <= EndDate THEN WorkStatus = “Work In Progress”
If
StartDate > CurrentDate THEN WorkStatus = “FutureWork”
Thanks in advance,
I have 4 text boxes on the form: StartDate ; EndDate ; CurrentDate and WorkStatus. The StartDate and EndDate are linked to the tblWorks.
As the default value for CurrentDate I have =Date() .
I need a code that will do something like this:
If
StartDate < CurrentDate and EndDate < CurrentDate THEN WorkStatus = “Work Done”
If
StartDate < CurrentDate <= EndDate THEN WorkStatus = “Work In Progress”
If
StartDate > CurrentDate THEN WorkStatus = “FutureWork”
Thanks in advance,