Ooops, sorry, you need a double for some reason. Try this:
Dim TheNewTime As Double
Dim WhatTime As FileDateToProcess
Dim dtDateTime As Date
...
TheNewTime = GetFileDateTime(FileName:=FName, WhichDateToGet:=WhatTime)
dtDateTime = TheNewTime
The Double is needed to preserve the decimal places, which the previous change was eliminating.
Then post dtDateTime to here:
sSQL = "INSERT INTO " & coltext & "_FileDateAndTime (FileDate) VALUES (#" & dtDateTime & "#)"
if this field is a date/time field.
Did that work?
mmcdonal
Look it up at:
http://wrox.books24x7.com