Times are stored as fractions of a day (i.e. 0.5 is 12 noon) in Excel.
If you are seeing them as numbers then it's possible that you have some
data in the first 8 rows in that column that is actually formatted as
numeric - in that case the OLE DB provider that Word uses to get data
from Excel will see the whole column as numeric. (see
tips.pjmsn.me.uk/t0003.htm for some details on that, but it sounds as if
you may have encountered a situation that is not described there).
So you can try to ensure that all the first 8 values in the column are
perceived to be times.
Or, to get the time /as formatted in Excel/ you may be able to connect
to Excel using DDE - in Word 2007, click the Office button, Word
Options, Advanced, General and check "Confirm file format conversion on
open". Then go through the process of selecting your database again and
select the DDE option in the extra dialog box.
Finally, you can recalculate the time from the fraction using { = }
fields in Word, e.g. if your field is called mytime, then the steps are
something like
{ SET T { MERGEFIELD mytime }
}{ SET T1 { =24*{ REF T } }
}{ SET H { ={ int({ REF T1 }) }
}{ SET T2 { =60*({ REF T1 }-{ REF H }) }
}{ SET M { ={ int({ REF T2 }) }
}{ SET T3 { =60*({ REF T2 }-{ REF M }) }
}{ SET S { ={ int({ REF T3 }) }
}{ SET ltime { QUOTE "{ REF H }:{ REF M }:{ REF S }" } }
then you should be able to use the ltime bookmark with time formatting e.g.
{ REF ltime \@"hh:mm AM/PM" }
All the pairs of {} need to be the special field code braces that you
can insert using ctrl-F9. You can abbreviate the above by eliminating
intermediate steps, etc. etc. macropod has lots of useful stuff on
date/time field calculations at at:
http://www.wopr.com/index.php?showtopic=249902&st=0&p=249902&#entry249902
that may well include properly tested versions of the above.
Peter Jamieson
http://tips.pjmsn.me.uk