MS Access: Summing time greater than 24 hours in query restarts from 1 again

前端 未结 3 1834
抹茶落季
抹茶落季 2020-12-12 07:37

I have a table trans_hist in MS Access program where time is stored in short Date format \"HH:MM\" ex:

[![Image][1]][1]

Now I have created a query which tell

3条回答
  •  清歌不尽
    2020-12-12 08:20

    Try this.

    SELECT UID, switch (
    t>1 , '00:15' 
    ,true,format(t,'hh:mm')
    ) as Time_Elapsed from
    (
    SELECT UID, sum(Time_Elapsed) as t
    From Table1
    Group By UID
    )
    

提交回复
热议问题