On Tue, 24 Jul 2007 08:32:01 -0700, sturner333
<(E-Mail Removed)> wrote:
>I am having the same problem. I don't know what happened but this morning
>whenI opened up the form I am working with, it didn't allow for new records
>and would not let me update the displayed records. I am supplying data to the
>form via a query with this SQL:
>
>SELECT divisionBOM.partCost, divisionBOM.Quantity, divisionBOM.id,
>divisionBOM.division, divisionBOM.PN, divisionBOM.newBusiness,
>divisionBOM.percNewBusiness, divisionBOM.description, [partcost]*[quantity]
>AS lineTotal, ([partcost]*[quantity])*([percnewbusiness]/100) AS lineTotal2
>FROM divisionBOM
>GROUP BY divisionBOM.partCost, divisionBOM.Quantity, divisionBOM.id,
>divisionBOM.division, divisionBOM.PN, divisionBOM.newBusiness,
>divisionBOM.percNewBusiness, divisionBOM.description;
>
>any help would be greatly appreciated.
The query has changed, then. No GROUP BY query is ever updateable (and, of
course, no calculated field such as Total is ever updateable).
Since you're not using any SUM or COUNT or other aggregate functions, open the
query in design mode and unselect the Greek Sigma icon (or, equivalently, open
it in SQL view and remove everything from GROUP BY to the end).
John W. Vinson [MVP]
|