
Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
Hi Douglas,
I am connecting to a MySQL database. The field I am trying to convert is
called dtime it is in seconds since 1/1/1970. I am using:
DateAdd("s", [dtime], #1/1/1970 5:00:00#)
It is still reporting it in seconds when I execute my query.
Thanks.
> How are you trying to convert the time? What happens when you try?
>
[quoted text clipped - 5 lines]
> >
> > Thanks.
Douglas J. Steele - 18 Apr 2005 22:56 GMT
That looks as though it should work. What are you doing with the resultant
field?

Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
> Hi Douglas,
>
[quoted text clipped - 17 lines]
>> >
>> > Thanks.
John Nurick - 19 Apr 2005 06:53 GMT
As Doug says, that looks as if it should work - but it returns a date
serial number, not a string representation of a date (though VBA often
displays it as the latter). Are you sure it's giving you a Unix date in
seconds as opposed to an Access one in days?
>Hi Douglas,
>
[quoted text clipped - 17 lines]
>> >
>> > Thanks.
--
John Nurick [Microsoft Access MVP]
Please respond in the newgroup and not by email.