G
Guest
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
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