I am trying to have the results of a calculation automatically stored/displayed in a textbox named Overdue.text. Basically i only want positive whole values as fines are based on the number of days people are overdue. DateReturned.text and DateDue.text are Date/Time fields.
If DateReturned.Text > DateDue.Text Then
Overdue.Text = DateReturned.Text - DateDue.Text
Else
Overdue.Text = 0
End If
I tried the above and it doesn't work for me. Is it because Overdue.text is set as Integer and not Date/Time? Any alternative ideas?
Any help would be most appreciated.
If DateReturned.Text > DateDue.Text Then
Overdue.Text = DateReturned.Text - DateDue.Text
Else
Overdue.Text = 0
End If
I tried the above and it doesn't work for me. Is it because Overdue.text is set as Integer and not Date/Time? Any alternative ideas?
Any help would be most appreciated.