Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 27th, 2009, 06:00 AM
Friend of Wrox
 
Join Date: Jan 2006
Posts: 131
Thanks: 10
Thanked 0 Times in 0 Posts
Default Update field with Aggregate Error

Hi,

I have an Access 2003 table that contains 2 fields:

AgeInDays (data type is double but which are whole numbers from 0 onwards)
WeightInKg (Data type is double with default as 0)

I need to run a query which is an 'Update to' the WeightInKg field
which is
Code:
Sum(0.0000000013*[AgeInDays]^4-0.0000140175*[AgeInDays]^3+0.0063725683*[AgeInDays]^2+0.022113072*[AgeInDays]+1.8089135351);
The resulting error is 'You tried to execute a query that does not include the specified expression "WeightByKg" as part of an aggregate function"

If I add 'FROM tblCalculatorReference GROUP BY tblCalculatorReference.[WeightByKg]' to the end of the expression, then an error message is displayed as 'containing invalid syntax'.

Can anyone help please?

Thanks in advance,
__________________
Neal

A Northern Soul





Similar Threads
Thread Thread Starter Forum Replies Last Post
Update Date Field desireemm Access 1 October 16th, 2005 12:25 AM
aggregate update?! Stuart Stalker SQL Language 2 September 1st, 2005 09:19 AM
Update city field based on zip field nganb SQL Server ASP 0 April 22nd, 2004 10:30 PM
Update a date field levinll SQL Language 1 January 16th, 2004 02:41 PM
Expression causes an Aggregate error Mitch SQL Server 2000 3 November 18th, 2003 04:20 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.