I ran into a problem using the Sqr(...) method. I couldn't export the query results ("Data type mismatch in criteria expression" error) or even sort by the magnitude column (You're right LittleSmudge, that Magnitude isn't really a field in the original table but a "column" in the query).
I will try using the format LittleSmudge and PHV offered and post back if I get it working....
I used LittleSmudge's method (^0.5) and I didn't get the datatype mismatch error when I went to sort by magnitude but its still grinding away so I'm not sure if the end result will be right.
Is it typical for this to take so long? There are 1,000,000 or so records in this query.
Unfortunately, I do have to do this calculation for every record as it is calculating vectors for various types of 3D modeling.
Fortunately, there are only two projects at this time that use this query and we should (in theory) only have to run the query once per project.
On an interesting point, when I run the query as a SELECT query, the query actually calculates quite quickly (less than 5 seconds). When I change it to a MAKE TABLE query or try to export the query as a .cvs file, that is when it takes the 2 hours+ to run. (The query results need to be in either table format or a text file to be imported into another program for plotting.)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.