S
Stockwell43
Hello,
I have a Module named "NumWeekdays" which take out the weekends between two
dates, works fine. I have an "OriginalDate", "CompleteDate", "CurrentDate"
and "Text77" fields.
On the current record the user will always enter an Original Date. On a
report I want to show the elapsed time between the Original Date each day the
report is pulled (or how ever often is pulled) until a Complete Date is
filled in. What I would like to happen is this:
When the original date is inputted and the CompleteDate is blank, I want
Text77 to show the elasped days between the OriginalDate and CurrentDate. If
the CompleteDate is filled in, I want Text77 to show the elapsed time between
OriginalDate and CompleteDate.
I know this is not correct because it doesn't work but, this is where I was
going:
Private Sub Form_Current()
CurrentDate = Date
If Me.CompleteDate = "IsNull" Then
Me.Text77 = NumWeekdays([OriginalDate], [CurrentDate])
ElseIf IsNull(Me.CompleteDate) = "False" Then
Me.Text77 = NumWeekdays([OriginalDate], [CompleteDate])
Else
End If
End Sub
Any help would be very much appreciated!!!
Thanks!!!
I have a Module named "NumWeekdays" which take out the weekends between two
dates, works fine. I have an "OriginalDate", "CompleteDate", "CurrentDate"
and "Text77" fields.
On the current record the user will always enter an Original Date. On a
report I want to show the elapsed time between the Original Date each day the
report is pulled (or how ever often is pulled) until a Complete Date is
filled in. What I would like to happen is this:
When the original date is inputted and the CompleteDate is blank, I want
Text77 to show the elasped days between the OriginalDate and CurrentDate. If
the CompleteDate is filled in, I want Text77 to show the elapsed time between
OriginalDate and CompleteDate.
I know this is not correct because it doesn't work but, this is where I was
going:
Private Sub Form_Current()
CurrentDate = Date
If Me.CompleteDate = "IsNull" Then
Me.Text77 = NumWeekdays([OriginalDate], [CurrentDate])
ElseIf IsNull(Me.CompleteDate) = "False" Then
Me.Text77 = NumWeekdays([OriginalDate], [CompleteDate])
Else
End If
End Sub
Any help would be very much appreciated!!!
Thanks!!!