Google
 
Webnews.only-4-geeks.com
Interesting places
news.only-4-geeks.com Forum Index » Access

calculate time in report or query

 
Jump to:  
 
sue gray
PostPosted: Wed Sep 03, 2008 1:22 pm    Post subject: calculate time in report or query
       
I am trying to calculate Earned and Used Time. I am really struggling with
this, do I put it in a query or the report. I really could use some help
with this. Thanks

Basically I need to be able to
If benefittype = s,
if amount > 0
add to sickamountearned,
else
add to sickamountused,
else if benefittype = v,
if amount >0
add to vacationamountearned,
else
add to vacationamountused,
else etc...
 

 
NetworkTrade
PostPosted: Wed Sep 03, 2008 7:36 pm    Post subject: RE: calculate time in report or query
       
probably in the query; particulary if ultimately you are going to want to
sum, avg, etc those calculated time fields in your report.

you can search this site for Time Calculations and see alot of Q/A....
--
NTC


"sue gray" wrote:

Quote:
I am trying to calculate Earned and Used Time. I am really struggling with
this, do I put it in a query or the report. I really could use some help
with this. Thanks

Basically I need to be able to
If benefittype = s,
if amount > 0
add to sickamountearned,
else
add to sickamountused,
else if benefittype = v,
if amount >0
add to vacationamountearned,
else
add to vacationamountused,
else etc...

 

 
sue gray
PostPosted: Thu Sep 04, 2008 11:13 am    Post subject: RE: calculate time in report or query
       
Thanks for the response. I look over time calculations like you suggested.
Those don't really apply to me. I am dealing with just numbers positve and
negative. I guess I need some more help. Thanks.

"NetworkTrade" wrote:

Quote:
probably in the query; particulary if ultimately you are going to want to
sum, avg, etc those calculated time fields in your report.

you can search this site for Time Calculations and see alot of Q/A....
--
NTC


"sue gray" wrote:

I am trying to calculate Earned and Used Time. I am really struggling with
this, do I put it in a query or the report. I really could use some help
with this. Thanks

Basically I need to be able to
If benefittype = s,
if amount > 0
add to sickamountearned,
else
add to sickamountused,
else if benefittype = v,
if amount >0
add to vacationamountearned,
else
add to vacationamountused,
else etc...

 

 
NetworkTrade
PostPosted: Thu Sep 04, 2008 1:36 pm    Post subject: RE: calculate time in report or query
       
if you are not working with time stamps, just regular numbers, it is indeed
easier. but you still probably want to do the calc in the query rather than
the report so that it is possible/easier to group sums/avgs at the end of
your report or the end of groups.

you want to build a calc field in your query using the Iif function i.e.

Tsickamount: Iif(FieldName1]>0, (this action),(Otherwise that action))

look up the Iif function on this site in Queries area or in Access Help,
these can be nested but that gets tricky to keep straight so start small and
simple to get the grasp....

when there is many levels of nesting sometimes it is easier to do some in
one calculated field and some in a second calculated field...and then create
a 3rd calculated field that works with those first 2....this may not make
sense at first but will once you get into it....

--
NTC


"sue gray" wrote:

Quote:
Thanks for the response. I look over time calculations like you suggested.
Those don't really apply to me. I am dealing with just numbers positve and
negative. I guess I need some more help. Thanks.

"NetworkTrade" wrote:

probably in the query; particulary if ultimately you are going to want to
sum, avg, etc those calculated time fields in your report.

you can search this site for Time Calculations and see alot of Q/A....
--
NTC


"sue gray" wrote:

I am trying to calculate Earned and Used Time. I am really struggling with
this, do I put it in a query or the report. I really could use some help
with this. Thanks

Basically I need to be able to
If benefittype = s,
if amount > 0
add to sickamountearned,
else
add to sickamountused,
else if benefittype = v,
if amount >0
add to vacationamountearned,
else
add to vacationamountused,
else etc...

 

Page 1 of 1 .:.

Google
 
Webnews.only-4-geeks.com

Windows Update | C++ | C | PHP | JavaScript | Photoshop | Programming | Windows 2000 | Python | Windows XP | Object | Flash | Flash - ActionScript | Paint Shop Pro | Excel | PowerPoint | Access | Word | Windows 98 | Internet Explorer 6.0 | CorelDraw12 | Java | XML | asm x86 | Linux Mandrake | Linux RedHat | Outlook |  | news from newsgroups |_ | s

Web Templates

Awesome Website Templates ©

poker online Interactive agency opuszczone hobby bet365