M
Mike
Could anyone help me build a query statement take converts the following into
hh:mm:ss
TTL Time Connected Hrs
02h 03m
00h 18m
00h 23m
00h 15m
02h 16m
02h 09m
00h 42m
1d 01h 55m
00h 59m
Notice some time have a day value and some do not. If it has a day value, it
will have only one digit before the d. I have the following excel formula
that works, but I need to have Access convert it.
=IF(ISERROR(FIND("d",D2)),0,LEFT(D2,FIND("d",D2)-1)*24)+MID(D2,FIND("h",D2)-2,2)+MID(D2,FIND("m",D2)-2,2)/60
I also have an Access statement that I thought would work, but I don't have
a place for the day field:
Expr1:
TimeSerial(Mid([FieldName],InStr(1,[FieldName],"h")-2,2),Mid([FieldName],InStr(1,[FieldName],"m")-2,2),0)
I just need to add the day statement in the above and 0 if there is no d.
Thanks for your help!
Mike Chamis
hh:mm:ss
TTL Time Connected Hrs
02h 03m
00h 18m
00h 23m
00h 15m
02h 16m
02h 09m
00h 42m
1d 01h 55m
00h 59m
Notice some time have a day value and some do not. If it has a day value, it
will have only one digit before the d. I have the following excel formula
that works, but I need to have Access convert it.
=IF(ISERROR(FIND("d",D2)),0,LEFT(D2,FIND("d",D2)-1)*24)+MID(D2,FIND("h",D2)-2,2)+MID(D2,FIND("m",D2)-2,2)/60
I also have an Access statement that I thought would work, but I don't have
a place for the day field:
Expr1:
TimeSerial(Mid([FieldName],InStr(1,[FieldName],"h")-2,2),Mid([FieldName],InStr(1,[FieldName],"m")-2,2),0)
I just need to add the day statement in the above and 0 if there is no d.
Thanks for your help!
Mike Chamis