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

Query Running Sum with no Values

46
I have a query that I am trying to get my employees weekly hours running sum. That way I can seperate the overtime hours and properly calculate profits. I am using a dsum() to add employee time if it is the same week number.

I am not getting any results for Running total.

Expand|Select|Wrap|Line Numbers
  1. Running Total: DSum("[time]","Profit Breakdown 1","[Week] = " & [week number] & " And  DatePart('d', [Date]) <= " & [ddate] & "")
Expand|Select|Wrap|Line Numbers
  1. Week number: Format([date],"ww")
Expand|Select|Wrap|Line Numbers
  1. Week: Format([Date],"ww")
Expand|Select|Wrap|Line Numbers
  1. ddate: DatePart('d',[date])
I am modeling this from this example:
http://support.microsoft.com/kb/290136
Apr 29 '14 #1
2 1184
Vasago
46
Update:

I was able to get it to calculate correct with this

Expand|Select|Wrap|Line Numbers
  1. Running Total: (DSum("[time]","Profit Breakdown 1","[Week] = " & [week number] & " And  DatePart('d', [Date]) <= " & [ddate] & " And [Employee]='" & [Employee1] & "'")/60)
But it only Calculating it for about 1/2 of the entries. I double checked the empty ones to make sure [Employee] and [Employee1], and dates match. The all look ok but still having issues.
Apr 29 '14 #2
Vasago
46
I have found the issue. I need to run Dsum in a new Query.
Apr 29 '14 #3

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

Similar topics

2
by: Larry R Harrison Jr | last post by:
The database is located at this link: http://www.angelfire.com/az/larrytucaz/tmp/db1.zip This database has a query which sometimes screens to leave out "OCB" in the last field in the query. It...
2
by: The Plankmeister | last post by:
Hi... I have a query which I'm accessing through PHP as a stored procedure. However, I need to be able not to pass a couple of parameters in certain situations. When I do this, I get an error: ...
2
by: Zlatko Matić | last post by:
Hello. How to reference selected values from a multi-select list box, as a criteria in a query ? Is it possible at all? Regards, Zlatko
4
by: keithb | last post by:
A page uses query string values to add a record to a database. The record should be added only once; however, if a user activates the url additional times, multiple records are added. Is there some...
2
by: brob | last post by:
I am Access newbie looking for some guidance in putting together a query that can output a table of max values in a given column grouped by a couple of other columns. Here is an example of what I...
2
by: MyGreatProgramme | last post by:
I want to make a delete query that deletes all the items that are in the minorty. For example, in the field " Houses " there are 10 rows with value 1 , 3 rows with value 3 and 4 rows with...
1
by: Marco van der M | last post by:
Hello everyone, I am trying to make an insert query that inserts information using form values and a query that gets the id from the name of a field in the form. I got a form that shows object...
5
by: DanicaDear | last post by:
I have perused the web for the answer to this and I almost think it's so elementary that no one has ever had to ask it. Haha. (FYI: I am not afraid of looking dumb.) :-) I have a simple query...
3
by: dgunner71 | last post by:
All, I have run into a scenario on search forms when using the "Top Values" property in the Record Source Query. I'm sure I'm just doing something wrong. Scenario: Parent Form houses...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.