trekwars2000
Technical User
Assuming I have a time column in the form of an 8 character text format (24 hour time, ex: 15:23:08) and I want to add an offset of any time, how would I write the query? I can do it easily in excel but access is giving me a problem. Here is what I came up with but I get an error:
Assuming I want to add say a 1:35:34 time offset to my data:
IIF(LEN(hour(TimeValue([time])+TimeValue("01:35:34")))=2,TimeValue([time])+TimeValue("01:35:34"),"0"&hour(TimeValue([time])+TimeValue("01:35:34")))&":"&(minute portion)&":"&(second portion)
Is this correct syntax? I cannot get it to work.
Thanks.
Assuming I want to add say a 1:35:34 time offset to my data:
IIF(LEN(hour(TimeValue([time])+TimeValue("01:35:34")))=2,TimeValue([time])+TimeValue("01:35:34"),"0"&hour(TimeValue([time])+TimeValue("01:35:34")))&":"&(minute portion)&":"&(second portion)
Is this correct syntax? I cannot get it to work.
Thanks.