I'm trying to claculate the difference between two times in a macro.
I'm using the following command:
DateDiff("n",[Forms]![Retail SLA Form]![SLA Time],[Forms]![Retail SLA Form]![End Time])
The value is to be stored in a field called **[Forms]![Retail SLA Form]![Date]**which is to be stored as a time HH:MM but the value returned is a date 5/4/1899.
Every article that I read says to use DateDiff but for some reason I can't seem to get it to work correctly.
The time I am calculating is 04:00 - 03:00 which should return 01:00.
These times will change depending on the information entered into the two fields - right now I am just using some test data.
Both fields that the calculation is to be performed on is defined in the table as a 'Short Date' and on the form as well.
Does anyone have any ideas as to what I am doing wrong?
Thanks