473,405 Members | 2,287 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Sum Field in report based on field value

I have query with the following field (ID, EmployeeNo, Date, daytype)

Daytype field have one following Value (P,AL,A,SL,H,AWR)

I would like to calculate the following from Type field:
Working Days (P+H)
Absent Days (SL+EL+AL,A)
Payable Days ((P+H+SL)-(EL+AL+A+AWR)

While Absent Without Reason (AWR) will be calculated with 2
Feb 19 '19 #1
2 1317
Luuk
1,047 Expert 1GB
if you have a query, and apparently a question about it, why do you not share this query here?

And what does "P,AL,A,SL,H,AWR" mean?
P = Present
AWR = Absent without Reason
But should the reader here GUESS what the other letters mean?

You would like to calculate somethings like 'Working Days (P+H)'. How would you like to add two values of daytype? (same question for 'Abesent Days' and 'Payable Days'.

Please do NOT assume you are clear when asking a question, but BE CLEAR when you ask a question.

Also give some example data, and what you expect to be outputted by your query.
Feb 19 '19 #2
twinnyfo
3,653 Expert Mod 2GB
Looma123,

Welcome to Bytes!

Yes, please post your query. It may also be helpful to understand your table structure.

As Luuk said, it is difficult for us to “guess” what you are trying to do. Please provide a more detailed explanation and we will work through the details.

Thanks!
Feb 19 '19 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Roy Adams | last post by:
Hi I'm reposting this question because for some reason can't post follow up question to this thread. What I'm trying to do is put the value and text from a a select in to a text field and to a...
3
by: Bill Clark | last post by:
I have about 20,000 records pulled from Excel that I need to update. What I need to do is run an update query that bascially says: If a field is null, update it with the previous record value of...
3
by: john | last post by:
In a report's calculated field I have the following code: =DCount("", "Orders", " = 'CA'") Now I would like to do the same calculation except that the criterium is that = Null. I have tried all...
9
by: Brett_A | last post by:
I have a form where the first field is a dynamic drop-down that pulls from a db (Access). The fields associated with the query are task_id, task_name and task_rate. The field has the value of...
2
by: DeanL | last post by:
Hi guys, I'm using a subform to display a list of values from a single table. The form is showing the values in "continuous forms" view and there will only ever be two different values for the...
4
by: Trish | last post by:
Hello All and thanks in advance for your help. The code below works just fine in the Print event of the report Detail section. Is it possible to condense it using a loop or something? Can you...
0
by: r | last post by:
Hi all I have a microsoft report in my program that has a Textfbox field and Image field.(I have an external image ) How can I change value of these controls at runtime?? (without using datafield...
4
by: nedryerson | last post by:
Hi, I'm trying to get a certain field to appear only when a value from another combobox field is selected. Specifically, when "Sample Rejected" is selected in the field "PcrLabResults," I would...
0
by: Anton Melamed | last post by:
Hi, I would very much appreciate any help give. Im creating database for handling stock of shoes with different sizes and orders. I have main form - Stock with a subform - Orders Each forms...
2
by: Pierkes | last post by:
Hi there, I have a question about conditional formatting on a report. On the report (detail section) i have a date field called Now, if is yet more than thirty days away i would like to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.