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 » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

TOTAL package PER DAY AND PER HOUR



 
 
Thread Tools Display Modes
  #1  
Old November 8th, 2009, 07:47 PM posted to microsoft.public.access.forms
Tia[_3_]
external usenet poster
 
Posts: 126
Default TOTAL package PER DAY AND PER HOUR

Hello,
i have a list a list of employees along with salaries, in the query i
have calculated the total of package using:
nz([Basic Salary])+nz([Overtime])+nz([Transportation])+nz
([Accomodation])+nz([Meal Allowances])+nz([Others])

i want to calculate the total per day" total package /30" and the
total per hour"total package/30/9"

Total per day i have used this exp but its not working: total package/
30
total hour: total per day/9

Please help
  #2  
Old November 8th, 2009, 11:05 PM posted to microsoft.public.access.forms
John W. Vinson
external usenet poster
 
Posts: 18,261
Default TOTAL package PER DAY AND PER HOUR

On Sun, 8 Nov 2009 11:47:31 -0800 (PST), Tia wrote:

Hello,
i have a list a list of employees along with salaries, in the query i
have calculated the total of package using:
nz([Basic Salary])+nz([Overtime])+nz([Transportation])+nz
([Accomodation])+nz([Meal Allowances])+nz([Others])

i want to calculate the total per day" total package /30" and the
total per hour"total package/30/9"

Total per day i have used this exp but its not working: total package/
30
total hour: total per day/9

Please help


Two possibilities: first, if you (unwisely) use blanks in fieldnames you must
enclose the fieldname in [square brackets] when you refer to it; and secondly,
you (usually) can't use a newly calculated fieldname in a further calculation.
You'll need to either recapitulate the entire expression, or save the query
calculating the [total package] and base a second query upon it.
--

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 10:57 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.