Solved

Need to modify the existing query to get results i want. Looks complicated

Posted on 2008-10-15
6
242 Views
Last Modified: 2011-10-19
Every morning user must clock in in the system. Clock In time recorded as Time.
it looks like:
Name           Time
Person B      9/2/2008 6:38 AM
Person A      9/2/2008 8:10 AM
Person B      9/3/2008 6:41 AM
___________________________
Of course, calendar month has weekends(WE), holidays(H).
When you are clock in- the status should be 1, when you are not clock in - you are off and the status  0
I have two attachnemtes:
Excel file and Database in access:

So i want to present the data for a whole calendar month, from 1 to 31
you can see in the attached Excel file how it should be

                01           02               03       04           05
Person A   H             1                  1           1         0
Person B   H             1                   1           1          1
which means for 01 it was a holiday, it means nobody clocked in, that is why this is H
for 02,03,04 05 1 stands for working, 0 for off,
so the person A was off only on 05 and Person B was here whole week but holiday




Action.xls
DBtest.mdb
0
Comment
Question by:rfedorov
  • 3
  • 2
6 Comments
 
LVL 44

Expert Comment

by:GRayL
ID: 22726686
And?
0
 

Author Comment

by:rfedorov
ID: 22726700
Hi, what do you mean?
0
 
LVL 44

Expert Comment

by:GRayL
ID: 22726747
For me, a well-worded question is one that can stand on its own.  The data serves only to show what the answer should be.  I just get tired of having to download data to find out what the question is about.  'She who must be obeyed'  is about to tear the door down looking for dinner - later my friend.
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 

Author Comment

by:rfedorov
ID: 22726773
To GRayL:
I am really sorry if i did something wrong to You. Somethimes is is hard (for me) to make a  perfect question. In this case it is really complicated. at least for me. That is why in my excel file you can see exactly what i need and h ow the results should be present.
I want to see the attendance on daily base for each day in the month, from 1 to 31 even if it was no action, like saturday, holiday or something else
My peace of data represent only if the person did clock in and the status is 1, this is only the data i can get from the database, you can see blanks in query because i can not make zeroes, i am using the function NZ but it did not work for me.
I will answer on all your questions if you have
0
 
LVL 8

Accepted Solution

by:
Joe Overman earned 500 total points
ID: 22778430
0
 

Author Closing Comment

by:rfedorov
ID: 31506540
No words, great job, clear, well explained!
0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question