The time is there, but since it is exactly midnight you are only being shown
the date. Dates and times are stored as doubles with the integer portion
being the date and the decimal portion being the time. Just like a number
123.000 will only display as 123, a date will only show the time portion (by
default) if the time is something other than 00:00:00.
You can force the time to appear by setting the format to show the time or
the date and the time.
"mabond" <(E-Mail Removed)> wrote in message
news

8D1E037-5B40-4DCC-A3F7-(E-Mail Removed)...
>I can't belive i can't find the right way to do this ... think I'm now
> blinkered.
>
> I have a table with two date/time fileds representing strat and end times
> of
> an event. Some events span midnight. In that event i want to change the
> event
> starttime to the date of the endtime and midnight. Every thing I have
> tried
> results in only a date value (with long date format) and no time in the
> field.
>
> With CurrentDb.OpenRecordset("logintimes", dbOpenDynaset)
> Do Until .EOF ' To step through all records
> .Edit
> If DateValue(!opact_logindt) < DateValue(!opact_logoutdt) Then
> newdate = DateValue(!opact_logoutdt)
> newtime = "00:00:00"
> newentry = newdate & " " & newtime
> !opact_logindt = newentry
> .Update
> .MoveNext
> end if
> Loop
>
> Any advice
>
> Michael Bond