473,321 Members | 1,622 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,321 software developers and data experts.

Help Calculating Overtime for employees in Access

cori25
83
Employee's input the shifts they want, once I have all this data I need to determine who will get what shifts depending on a reliability %, if thats the same then I look at the time stamp.

I have come to the point where I am pulling out the duplicate date's in a query.

Name Date Shift Reliability
Buck, Jack 1/2/2008 4:00 PM-12:30 AM 0.16254
smith, frank 1/2/2008 4:00 PM-12:30 AM 0
Jones, Bobby 1/3/2008 3:30 PM-12:00 AM 0.1111
Apex,Silvia 1/3/2008 3:30 PM-12:00 AM 0.5714

Now, I need to have it look at the dates that are the same and out of those,the lowest reliability should get the overtime. For example (1/2/2008, 2 entries, 0 Reliabilty should get Overtime).

Does anyone know of any function that would allow me to get this result?

Any help appreciated!!!!
Jan 17 '08 #1
1 2442
PianoMan64
374 Expert 256MB
Employee's input the shifts they want, once I have all this data I need to determine who will get what shifts depending on a reliability %, if thats the same then I look at the time stamp.

I have come to the point where I am pulling out the duplicate date's in a query.

Name Date Shift Reliability
Buck, Jack 1/2/2008 4:00 PM-12:30 AM 0.16254
smith, frank 1/2/2008 4:00 PM-12:30 AM 0
Jones, Bobby 1/3/2008 3:30 PM-12:00 AM 0.1111
Apex,Silvia 1/3/2008 3:30 PM-12:00 AM 0.5714

Now, I need to have it look at the dates that are the same and out of those,the lowest reliability should get the overtime. For example (1/2/2008, 2 entries, 0 Reliabilty should get Overtime).

Does anyone know of any function that would allow me to get this result?

Any help appreciated!!!!
Without knowing more about your table structure, the only thing that i can suggest is that you can use one of the functions within your query to simply sort all results that you have by ASCENDING order by TimeStamp, and then Reliable and use the FIRST option on your Percent of Reliable field, then that would select from the query the First Item from the list that would match your criteria in the query without it displaying the duplicate people that are wanting the same schedule time.

If you're wanting it to calculate overtime, if that person has more time than they should, then I need more information about your table structure in order to answer than question.

Hope that helps,

Joe P.
Jan 20 '08 #2

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

Similar topics

6
by: Porky | last post by:
Scenario: login/logoff scripts that kick username, times, and dates out to a CSV file. I have a linked table in access pointing to that CSV file. Users typically log in and log out twice a day...
2
by: Eric Whittaker | last post by:
here's my dilemma, on the program below, i am trying to calculate overtime pay at time and a half, but instead of only counting the hours after 40, it counts all hrs at that rate, how can i avoid...
4
by: Laura | last post by:
Here's the situation: I'm trying to use an update query to copy data from one row to another. Here is the situation: I have 5 companies that are linked to each other. I need to show all 5...
3
by: Jamie Pittman via AccessMonster.com | last post by:
I am currently working on a project to take an employees time for a day and and if over 8 hours it would move those extra hours to overtime row amd not caculate into regular time. I started to use...
5
by: Jamie Pittman via AccessMonster.com | last post by:
I have two tables with 5000 entries on them. One is based for regular time with several variables example (employee name, date,time in and out, code, customer, building) I have another table that...
27
by: SK | last post by:
Hi I am trying to teach myself how to program in C. I am a physician hoping to be able to help restructure my office. Anyhow, I amhoping that the porblem I am having is simple to those much more...
8
by: SK | last post by:
Hi I am trying to write a simple C program with devc++ as the complier using the concept of arrays. I cannot get the program to compile without mutiple errors. If anyone has the time to help me...
6
by: D | last post by:
Hello all...I have an issue with one of my java script functions that I'm hoping someone can easily help with. I have a web based application that we use to create/sign up for overtime. When we...
7
cori25
by: cori25 | last post by:
I have 4 database's that I need to enter and run a macro in. The macro in each db is named the same. I am having difficulty creating a loop to go into one db run the macro exit and then go into...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.