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  

Calculating a difference between an absolute value and a sum of va



 
 
Thread Tools Display Modes
  #1  
Old November 29th, 2009, 04:09 PM posted to microsoft.public.access.queries
newby
external usenet poster
 
Posts: 17
Default Calculating a difference between an absolute value and a sum of va

My query needs to show time remaining from "eligible time off" and
accumulated time taken. However, rather than subtracting the total of time
taken from the eligible time off (ex. 120-80), it is running the subtraction
on each individual time off request and then adding the results (ex 120 -8,
120-8, 120-8, and coming up with 336). It is evaluating against a query the
correctly sums the time off requests. Any help? I am very new to Access and
have no familiarity with SQL.
  #2  
Old November 29th, 2009, 05:33 PM posted to microsoft.public.access.queries
Marshall Barton
external usenet poster
 
Posts: 5,361
Default Calculating a difference between an absolute value and a sum of va

newby wrote:

My query needs to show time remaining from "eligible time off" and
accumulated time taken. However, rather than subtracting the total of time
taken from the eligible time off (ex. 120-80), it is running the subtraction
on each individual time off request and then adding the results (ex 120 -8,
120-8, 120-8, and coming up with 336). It is evaluating against a query the
correctly sums the time off requests. Any help? I am very new to Access and
have no familiarity with SQL.



How are you calculating the total time taken? That depends
on what your query is doing so post a Copy/Paste of the
query's SQL view would probably help clarify your question.

--
Marsh
MVP [MS Access]
 




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 08:36 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.