B
Brad Pears
I have a form that is based on a query. Originally, this query simply had
one table in it with some where clauses etc... and the user could modify
data on the form that was bound to this query...
I have now added another object to the initial query this form is bound to
so that now the query includes two objects... the initial table (Customers)
and a query object that is a "group by" query on the same customers table -
grouped by on the "customer ID" - with another "where" clause field. I know
this sounds confusing but the effect is that the query is only producing ONE
row per customer based on the where clause - rather than m,ultiples rows per
customer as it was before...
However, now what is happening is that the user can not change any data on
the form. It now says that "This recordset is not updateable". The rights
are all ok on the form and query. When I remove the 2nd object (the query
object) as a test it is updateable again - so it obviously has something to
do with that 2nd query object being part of this original query... (clear as
mud??)
Any thoughts on why this might be? Does it have to do with the "group by"
query I am using because without this, the user would see multiple records
for the customer and I do not want that...
Here is the Access generated SQL from the query in question... This is not
an updateable recordset...
"SELECT Customers.CustomerID, Customers.CustomerStatus, Customers.LastName,
Customers.FirstName, Customers.PrimarySalesperson,
Customers.DateSARActivated, Customers.RequiresSalesAction,
Customers.IsSARDealtWith
FROM Customers INNER JOIN qryCustSAR_Distinct ON Customers.CustomerID =
qryCustSAR_Distinct.CustomerID
WHERE Customers.PrimarySalesperson Like [forms]![frmSARMaint].[cboSales]
ORDER BY Customers.PrimarySalesperson, Customers.DateSARActivated;"
Thanks,
Brad
one table in it with some where clauses etc... and the user could modify
data on the form that was bound to this query...
I have now added another object to the initial query this form is bound to
so that now the query includes two objects... the initial table (Customers)
and a query object that is a "group by" query on the same customers table -
grouped by on the "customer ID" - with another "where" clause field. I know
this sounds confusing but the effect is that the query is only producing ONE
row per customer based on the where clause - rather than m,ultiples rows per
customer as it was before...
However, now what is happening is that the user can not change any data on
the form. It now says that "This recordset is not updateable". The rights
are all ok on the form and query. When I remove the 2nd object (the query
object) as a test it is updateable again - so it obviously has something to
do with that 2nd query object being part of this original query... (clear as
mud??)
Any thoughts on why this might be? Does it have to do with the "group by"
query I am using because without this, the user would see multiple records
for the customer and I do not want that...
Here is the Access generated SQL from the query in question... This is not
an updateable recordset...
"SELECT Customers.CustomerID, Customers.CustomerStatus, Customers.LastName,
Customers.FirstName, Customers.PrimarySalesperson,
Customers.DateSARActivated, Customers.RequiresSalesAction,
Customers.IsSARDealtWith
FROM Customers INNER JOIN qryCustSAR_Distinct ON Customers.CustomerID =
qryCustSAR_Distinct.CustomerID
WHERE Customers.PrimarySalesperson Like [forms]![frmSARMaint].[cboSales]
ORDER BY Customers.PrimarySalesperson, Customers.DateSARActivated;"
Thanks,
Brad