A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Negative Figures In A Query



 
 
Thread Tools Display Modes
  #1  
Old April 21st, 2010, 09:35 AM posted to microsoft.public.access.queries
Bateman28
external usenet poster
 
Posts: 13
Default Negative Figures In A Query

Hi

I have greated a query that sums up alot of different fields into numbers,
the only problem is the numbers always return as a negative! How do I need to
wright the expressions so that the figures return a positive number and not a
negative.

Example: I get (-214) when it should be (214)

Any help would be great


  #2  
Old April 21st, 2010, 11:18 AM posted to microsoft.public.access.queries
RonaldoOneNil
external usenet poster
 
Posts: 345
Default Negative Figures In A Query

Abs(-214)

or

-214 *-1

"Bateman28" wrote:

Hi

I have greated a query that sums up alot of different fields into numbers,
the only problem is the numbers always return as a negative! How do I need to
wright the expressions so that the figures return a positive number and not a
negative.

Example: I get (-214) when it should be (214)

Any help would be great


  #3  
Old April 21st, 2010, 12:47 PM posted to microsoft.public.access.queries
Bateman28
external usenet poster
 
Posts: 13
Default Negative Figures In A Query

I have tried both types and i get the same error.

Error circular reference caused by alias " Field Name " in Query Definitions
select list.

The query has selected files that i can't change as they pick up specific
files in a specific format that i need.....

anymore help would be appreciated

"RonaldoOneNil" wrote:

Abs(-214)

or

-214 *-1

"Bateman28" wrote:

Hi

I have greated a query that sums up alot of different fields into numbers,
the only problem is the numbers always return as a negative! How do I need to
wright the expressions so that the figures return a positive number and not a
negative.

Example: I get (-214) when it should be (214)

Any help would be great


  #4  
Old April 21st, 2010, 01:34 PM posted to microsoft.public.access.queries
John Spencer
external usenet poster
 
Posts: 7,815
Default Negative Figures In A Query

Post the SQL View of your query.

Try changing the alias of "Field Name" in the query.


John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County

Bateman28 wrote:
I have tried both types and i get the same error.

Error circular reference caused by alias " Field Name " in Query Definitions
select list.

The query has selected files that i can't change as they pick up specific
files in a specific format that i need.....

anymore help would be appreciated

"RonaldoOneNil" wrote:

Abs(-214)

or

-214 *-1

"Bateman28" wrote:

Hi

I have greated a query that sums up alot of different fields into numbers,
the only problem is the numbers always return as a negative! How do I need to
wright the expressions so that the figures return a positive number and not a
negative.

Example: I get (-214) when it should be (214)

Any help would be great


  #5  
Old April 21st, 2010, 04:25 PM posted to microsoft.public.access.queries
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Negative Figures In A Query

On Wed, 21 Apr 2010 04:47:01 -0700, Bateman28
wrote:

I have tried both types and i get the same error.


Correct the error in your query. If you would like help doing so please post
the SQL view of the query - we can't see it from here.

Error circular reference caused by alias " Field Name " in Query Definitions
select list.


If you're trying to define [Field Name] on the basis of [Field Name] you'll
get this error; e.g.

[Field Name]: Abs([Field Name])

can't work. Try

[Corrected field name]: Abs([Field name])

or some *other* name.

The query has selected files that i can't change as they pick up specific
files in a specific format that i need.....


You'll need to explain that statement. Do you mean "fields" instead of
"files"? What does the format have to do with anything?
--

John W. Vinson [MVP]
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:27 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.