Hello
I have a date/time field called Message Date/Time and another field called IN I want to create a new field called Time IN and have with this : Time In: IIf([IN]="IN",[Message Date/Time],"") It does give me the correct result but as text. I want to keep it as a date and time so that I can do calculations. I tried TimeValue which does work except if there is not date if gives #Error and then the calculations don't work either.
My end result is I have a start date/time and an end date/time and I want to subtract the 2 to get total time spent. But both start and end date/times have numerous entries per day so for the start time I need the first time in and for the End time the last time out
I have a date/time field called Message Date/Time and another field called IN I want to create a new field called Time IN and have with this : Time In: IIf([IN]="IN",[Message Date/Time],"") It does give me the correct result but as text. I want to keep it as a date and time so that I can do calculations. I tried TimeValue which does work except if there is not date if gives #Error and then the calculations don't work either.
My end result is I have a start date/time and an end date/time and I want to subtract the 2 to get total time spent. But both start and end date/times have numerous entries per day so for the start time I need the first time in and for the End time the last time out