I have record set that populates a continuous form. I want to be able to edit the contents of any row on the form. Especially the dates and times. However, I get an error stating that since the date and/or time data is based on an expression, it can't be edited. I have tried DateValue, TimeValue and formatted the Date and Time text boxes as Short Date and Short Time, respectively, without altering the BeginDate and EndDate field in the query. CDate Will not work as it delivers the date with the time. Does anyone have any suggestions on how I can enable editing? The populated form and query are shown below:
SELECT TOP 50 DowntimeEvent.DowntimeEventID, Format(DowntimeEvent.BeginDate,"MM/DD/YYYY") AS ["Begin Date"], DowntimeEvent.BeginDate-Int(DowntimeEvent.BeginDate) as ["Begin Time"], Format(DowntimeEvent.EndDate, "MM/DD/YYYY") AS ["End Date"], DowntimeEvent.EndDate-Int(DowntimeEvent.EndDate) AS ["End Time"], DowntimeEvent.Description, DowntimeEvent.Planned, DowntimeEvent.ReportedBy, DowntimeEvent.ServerName
FROM DowntimeEvent
ORDER BY DowntimeEvent.BeginDate DESC;