M
Mark
Hi,
I am having problems with a simple query I am trying to put together.
I have one table (called tblHost) and a query called
qryCountStudentsHosted. Within tblHost I have a field called
intCurrentNumberOfStudents. Each host has a number of students and
the qryCountStudentsHosted counts the number of students a host
currently has. I then want to update the field
intCurrentNumberOfStudents with this count of students using an update
query. The SQL I am using for this is as follow:
UPDATE qryCountStudentsHosted INNER JOIN tblHost ON
qryCountStudentsHosted.idsHost = tblHost.idsHost SET
tblHost.intCurrentNumberOfStudents = [qryCountStudentsHosted].
[CountOfidsStudent];
When I run this query I get the error message "Operation must use an
updateable query". It seems that it trying to update a field with
qryCountStudentsHosted, but I want to update the field
(intCurrentNumberOfStudents) within tblHost.
Any suggestions?
I am having problems with a simple query I am trying to put together.
I have one table (called tblHost) and a query called
qryCountStudentsHosted. Within tblHost I have a field called
intCurrentNumberOfStudents. Each host has a number of students and
the qryCountStudentsHosted counts the number of students a host
currently has. I then want to update the field
intCurrentNumberOfStudents with this count of students using an update
query. The SQL I am using for this is as follow:
UPDATE qryCountStudentsHosted INNER JOIN tblHost ON
qryCountStudentsHosted.idsHost = tblHost.idsHost SET
tblHost.intCurrentNumberOfStudents = [qryCountStudentsHosted].
[CountOfidsStudent];
When I run this query I get the error message "Operation must use an
updateable query". It seems that it trying to update a field with
qryCountStudentsHosted, but I want to update the field
(intCurrentNumberOfStudents) within tblHost.
Any suggestions?