Elapsed time in seconds from separate date and time fields

G

Guest

Can I calculate elapsed time in seconds from four separate start date and
start time/end date and end time fields? I can do it no problem with two
fields - start date-time and end date-time fields but my client wants the
fields to be separate. Thanks for your help.
 
A

Allen Browne

Try something like this:
DateDiff("s", [StartDate] + [StartTime], [EndDate] + [EndTime])

That's considerably less efficient than using combined date/time fields, but
it should work.
 
G

Guest

Thanks so much. I'll try it.

Allen Browne said:
Try something like this:
DateDiff("s", [StartDate] + [StartTime], [EndDate] + [EndTime])

That's considerably less efficient than using combined date/time fields, but
it should work.

--
Allen Browne - Microsoft MVP. Perth, Western Australia

Reply to group, rather than allenbrowne at mvps dot org.

Susy said:
Can I calculate elapsed time in seconds from four separate start date and
start time/end date and end time fields? I can do it no problem with two
fields - start date-time and end date-time fields but my client wants the
fields to be separate. Thanks for your help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top