473,473 Members | 1,831 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

DSum for running total to date

11 New Member
I'm about to go nuts trying to figure this out...I'm sure it's something pretty basic that I'm missing which will make me more nuts when someone provides the answer!

I'm trying to determine the week where the total paid for a given case reached or surpassed $1000. My query is called "DSUM_PRE" where I'm creating the payment week field. The fields in the query are CASE_ID, PYMT_WK, and PYMT_AMT. The code I'm using is

RUNNING_TTL: DSum("[PYMT_AMT]","DSUM_PRE","[PYMT_WK]<=" & [PYMT_WK])

When I run the query "Running_Ttl" comes back null.

Please help before my laptop or I go flying off the roof...
Jan 29 '15 #1
3 2135
jforbes
1,107 Recognized Expert Top Contributor
Try:
Expand|Select|Wrap|Line Numbers
  1. DSum("Nz([PYMT_AMT],0)","DSUM_PRE","[PYMT_WK]<=" & [PYMT_WK])
  2.  
Nulls can cause your whole expression to return a Null
Jan 29 '15 #2
muttnut
11 New Member
Now I'm getting #Error...
Jan 29 '15 #3
muttnut
11 New Member
Based on your comment about the null values, I went to my "pre" query and put in a criteria to exclude anything <=0.00 and now I'm getting a $ result....unfortunately it's the same $ amount for all cases...if I had to guess, I would say that it's giving me the grand total for all cases for each case and each payment month...getting closer!
Jan 29 '15 #4

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

Similar topics

5
by: fwells11 | last post by:
Hi there. As you will see from my questions, I am an SQL newb. I dabble but never get to spend enough time to get proficient so base any feeedback on that basis please. This is all theoretical...
4
by: Bill Dika | last post by:
Hi I am trying to calculate a running total of a calculated textbox (tbAtStandard) in GroupFooter1 for placement in a textbox (tbTotalAtStandard) on my report in Groupfooter0. The problem...
1
by: ????? | last post by:
I have a query which shows the following fields and orders by every one in turn from left to right in ascending order. The fields are DATE, , WORK, *, DESCRIPTION and . How can I get a running...
1
by: u473 | last post by:
I am scratching my head with the required quotes and parentheses. I started with an existing working Query with Running Total by date. Now I need to produce a running total by quarter day, so I...
16
by: Gandalf186 | last post by:
I need to create a query that produces running totals for every group within my table for example i wish to see: - Group A 1 5 9 15 Group B
2
by: Jana | last post by:
Using Access 97. Background: I have a main report called rptTrustHeader with a subreport rptTrustDetails in the Details section of the main report. The main report is grouped by MasterClientID. ...
12
jaccess
by: jaccess | last post by:
Hello all, I am trying to create a running total based on a specific date range that is to be entered into a form. I currently have the form set up with 2 text boxes (date1 and date2) which are...
6
by: Stuart Shay | last post by:
Hello All: I have a array which contains the totals for each month and from this array I want to get a running total for each month decimal month = new decimal; month = 254; (Jan) month =...
2
by: Gelcys | last post by:
I feel as though I’m banging my head against a wall trying to get something done – Access is good at some parts and Excel at others. What I’m starting with is a txt file that I need to import weekly...
8
by: Vish Narayan | last post by:
I have a table with four columns : Autonumber ProductGroup Amount Date The table consists of transactions for different dates . The dates are already sorted . But I am having a problem in...
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,...
1
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.