JLRodgers Level: Moderator
 Registered: 04-04-2002 Posts: 1617
|
Re: Time field calculation
If the ColDuration is a Date/Time field:
UPDATE Tablename SET CallDuration =CallEnd-CallStart
(however the result will have a 1:29am 12:00pm, 3:00pm for 1:29, 12hours, 15hours)
If the field is numeric, it'll be a decimal point.
Or you could open the table, get the values from CallStart & CallEnd and subtract them via DateDiff, and then store the value in the table.
The last method requires looping through the table.
|