Those dates you quote (01/01/1900 and 12/30/1899) make it sound as though no
value is actually getting assigned to AuthDate (1 Jan, 1900 is the "base
date" in SQL server, while 30 Dec, 1899 is it in Access)
That having been said though, I don't believe it's necessary to use the
Convert function. Dates and times are stored as numeric values: I believe
you can simply add AuthDate + AuthTime.
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
"Welthey" <(E-Mail Removed)> wrote in message
news:B4AFF99A-20AB-4845-918C-(E-Mail Removed)...
> Currently I have a date and a time field in my table. I need to be able
> to
> combine these two items into one field, but when I try to combine them it
> is
> subtracting 2 days off of the actual date. My table is in SQL. Is there
> any
> way around this, this is the code that I am using
>
> update dbo.purgedrecords
> Set [datetime] = AuthDate + convert(datetime, AuthTime)
>
> Previously this was working when the default date on the time was
> 01/01/1900
> and then somehow something changed and the default date is now showing as
> 12/30/1899. Is there different code that I can use to keep this from
> happening in the future?
>
>