firla
08-18-2008, 08:12 PM
Hi,
The following query:
update People set [StartDate] = (
select DateValue([Actual Start Date])
FROM ActualStartDates
Where ActualStartDates.ID = People.StudentID
and [Actual Start Date] IS NOT NULL)
gives me the following error message:
operation must use an updatable query.
The following two queries work:
update People set [StartDate] = #1/1/2007#
and
select DateValue([Actual Start Date])
FROM ActualStartDates, People
Where ActualStartDates.ID = People.StudentID
and [Actual Start Date] IS NOT NULL
ID and StudentID are primary keys, therefore I select every time EXACTLY ONE Date.
Thanks for your help,
firla
The following query:
update People set [StartDate] = (
select DateValue([Actual Start Date])
FROM ActualStartDates
Where ActualStartDates.ID = People.StudentID
and [Actual Start Date] IS NOT NULL)
gives me the following error message:
operation must use an updatable query.
The following two queries work:
update People set [StartDate] = #1/1/2007#
and
select DateValue([Actual Start Date])
FROM ActualStartDates, People
Where ActualStartDates.ID = People.StudentID
and [Actual Start Date] IS NOT NULL
ID and StudentID are primary keys, therefore I select every time EXACTLY ONE Date.
Thanks for your help,
firla