- Total Members: 220,025
- Threads: 525,387
- Posts: 976,997
-
January 7th, 2013, 07:37 PM
#1
What is wrong with this equation?
Hi all,
I am trying to use a query to calculate the value of field in table. This is the equation that i came up with
FIELD:| <FieldToBeCalualted>: Sqr(([Field1]-[Field2])^2+([Field3]-[Field3])^2)
TABLE:| <Table
but when i try to run the query it throws back "Extra ) in query expression"
What am i missing?
here is the equation in excel that i am trying to copy
=SQRT((C8-A8)^2+(D8-B8)^2)
Thanks
-
January 8th, 2013, 05:43 AM
#2

Originally Posted by
rclark1
Hi all,
I am trying to use a query to calculate the value of field in table. This is the equation that i came up with
FIELD:| <FieldToBeCalualted>: Sqr(([Field1]-[Field2])^2+([Field3]-[Field3])^2)
TABLE:| <Table
but when i try to run the query it throws back "Extra ) in query expression"
What am i missing?
here is the equation in excel that i am trying to copy
=SQRT((C8-A8)^2+(D8-B8)^2)
Thanks
I don't see anything missing copied into a test DB your equation works fine, but Field3 - Field3 squared will always be zero. Can you copy and paste the whole SQL statement you are using?
Last edited by meratigoerr; January 8th, 2013 at 05:47 AM.
Similar Threads
-
By RSS_News_User in forum Technology News
Replies: 0
Last Post: June 12th, 2010, 12:00 PM
-
By erickh in forum ASP Development
Replies: 18
Last Post: April 11th, 2006, 01:54 AM
-
By erickh in forum ASP Development
Replies: 1
Last Post: April 6th, 2006, 05:47 AM
-
By renee in forum .NET Development
Replies: 2
Last Post: April 22nd, 2005, 12:57 PM
-
By Amara in forum ASP Development
Replies: 2
Last Post: November 23rd, 2004, 03:22 PM