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

Queries Totalling Balances Based on Time/Date

9
I am making a report that shows customer invoice details. It is based on two queries joined by the key field Account ID.

Report
..... Account ID
..... Statement Date

Subreport
...... Account ID
..... Invoice Number
..... Invoice Date
..... Due Date
..... Invoice Total
..... Amount Paid
..... Outstanding Balance

There's a 30 day time frame between the Invoice Date and Due Date for each invoice.

I'd like to have three (3) fields at the bottom of the report that would...

1) Contain the sum of Oustanding Balance for invoices past their Due Date.

Maybe a logic like this:

If Due Date < Statement Date
Then Sum([Outstanding Balance])

Call it OVER30

2) contain the sum of Outstanding Balance for all invoices issued in the current month.

Call it CURRENT

3) contain the sum of OVER30 and CURRENT, which would most likely be simply adding the two previous fields after they have been created.

Call it TOTAL


I'd really appreciate any help on how to create these three fields.
Mar 4 '16 #1
1 1018
Narender Sagar
189 100+
This is easy to do.
You can create a status column in the query using if statement, you can get three different status. Now in Report design view, create a group based on this logical column (you've created in the query). Now you can get Totals, based on this status column.
Pl. let me know, if you need some more details.
Mar 4 '16 #2

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

Similar topics

3
by: Roel Castro | last post by:
Hello everyone, Could somebody help me how to open time/date item in Control panel by codes in access form modules? Taking in consideration the operating system which is Windows 98, Windows 2000...
1
by: ET | last post by:
Please help with the query: There are two tables, A and B. A table has information about cell phones, like cell number, sim number, model, manufacturer etc... B table has user related...
2
by: Andrzej | last post by:
Currently I'm doing this: <param name="File" value="c:\\temp\\Applog.txt"/> <param name="AppendToFile" value="true"/> <param name="RollingStyle" value="Date"/> <param name="StaticLogFileName"...
9
by: Bob Achgill | last post by:
I would like to use the timestamp on files to manage the currency of support files for my VB windows application. In this case I would only put the timestamp of the file in the management database...
28
by: richardlang | last post by:
Anyone out there ever come across a preprocessor macro that compares an argument value against the predefined __DATE__ macro in order to control conditional compilation based on date. Something...
8
by: bessie | last post by:
I have a registration form that loads into a dava.csv file (code below). I want to add a time/date stamp so that each time someone registers, the last column in the spreadsheet shows the time/date....
2
by: moonbug | last post by:
How can I move files based on date specifically for the case below: 1. crontab runs every hour 2. any file in directory 1 dated less than the current hour is moved to directory 2. eg file1...
1
by: gnawz | last post by:
Hi developpers, I need to generate reports in three ways: I have a Date field in my database... today $query = 'SELECT * FROM 'table' WHERE Date = today'; Past seven days $query = 'SELECT...
1
by: Milan Grba | last post by:
Can anyone tell me what the load impact on the network when running desktop queries vs. server based queries. I am not sure this is the exact question i want to ask or if i asked it in the right way....
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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.