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

Total passed for payment to date

Hi,

I am in serious need of some help PLEASE?

I have a 4 tables (April data, May data, June data and July data) with
numerous fields. Each of the tables has its own "Passed for payment to
date" field.

In a query I am trying to calculate the "Total passed for payment"
which will be the sum of the "Passed for payment" fields taken from
each of the 4 (month) tables.

I have tried numerous ways of calculating this figure but I am not
having much joy! Any suggestions would be much appreciated?

Cheers,

DWH.

Dec 12 '06 #1
3 1640
If I understand correctly, you're trying to count the number of records in a
table where there is data in the field [Passed for payment...]:

NumPassedA = DCount("*","[TableApril]","IsNull([Passed for payment])=False")
NumPassedB = DCount("*","[TableMay]","IsNull([Passed for payment])=False")

Then total NumPassed = NumPassedA + NumPassedB + ...
da*************@gmail.com wrote:
>Hi,

I am in serious need of some help PLEASE?

I have a 4 tables (April data, May data, June data and July data) with
numerous fields. Each of the tables has its own "Passed for payment to
date" field.

In a query I am trying to calculate the "Total passed for payment"
which will be the sum of the "Passed for payment" fields taken from
each of the 4 (month) tables.

I have tried numerous ways of calculating this figure but I am not
having much joy! Any suggestions would be much appreciated?

Cheers,

DWH.
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200612/1

Dec 12 '06 #2
Thanks but I think I am being a bit thick!

I'm not sure if

a) I made myself clear in what I am trying to achieve?
b) I might just not know what I'm doing (which is more likely to be the
case)?

My "April" table has a field in called "Passed for payment this month"
e.g. 5
My "May" table has a field in called "Passed for payment this month"
e.g. 10
My "June" table has a field in called "Passed for payment this month"
e.g. 20
My "July" table has a field in called "Passed for payment this month"
e.g. 20

Therefore 5 + 10 + 20 + 20 = 55.

In a query I am trying to calculate the total passed for payment to
date (in the example I've shown above, should be 55) which I would have
thought should be easy enough to do my adding together April PFP, May
PFP, June PFP and July PFP but obviously not?

If what you suggested is still valid please could you explain how to
get it to work as I haven't managed to get the result I am expecting?

Many Thanks,

DWH.

Dec 12 '06 #3
This seems to indicate that each table has only one record. If so, I'd
recommend using one table instead and another field to indicate the month.
Then you could sum the field in a totals query. In your case, you could use
the function DSum() or create a union query then a totals query based on the
union query.

DSum("[Passed for ...]","TableApril") + DSum("[Passed for ...]","TableMay")...
SELECT [Passed for...] FROM TableApril
UNION SELECT [Passed for...] FROM TableMay...;
da*************@gmail.com wrote:
>Thanks but I think I am being a bit thick!

I'm not sure if

a) I made myself clear in what I am trying to achieve?
b) I might just not know what I'm doing (which is more likely to be the
case)?

My "April" table has a field in called "Passed for payment this month"
e.g. 5
My "May" table has a field in called "Passed for payment this month"
e.g. 10
My "June" table has a field in called "Passed for payment this month"
e.g. 20
My "July" table has a field in called "Passed for payment this month"
e.g. 20

Therefore 5 + 10 + 20 + 20 = 55.

In a query I am trying to calculate the total passed for payment to
date (in the example I've shown above, should be 55) which I would have
thought should be easy enough to do my adding together April PFP, May
PFP, June PFP and July PFP but obviously not?

If what you suggested is still valid please could you explain how to
get it to work as I haven't managed to get the result I am expecting?

Many Thanks,

DWH.
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200612/1

Dec 12 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Rajani | last post by:
Hello, I have a table(msaccess) with the structure... job_code text 6 style text 10 qty number fabrication text 65 ship_date date/time
2
by: Karen | last post by:
I inserted this statement and it worked great for the customers that have no payment history, but for the customers that have a history and an open invoice, it still used today's date in the mix...
1
by: totoringo2004 | last post by:
Hello, I’d need some help guys... I know how to do it in Excel, but can’t find a way in Access... here’s a simplified overview of the problem: Let’s say I have Invoices as follows: Jan-04 $110...
2
by: actmnophn | last post by:
Hi, I am using access currently to keep track of doations for my nonprofit org. I have one table with all the contact info per "customer" and one with all the transactions. I wanted to print a...
5
by: James Conrad StJohn Foreman | last post by:
Have found http://www-128.ibm.com/developerworks/db2/library/techarticle/lyle/0110lyle.html which is quite helpful, but doesn't quite tell me what I want. I have a table, advertising_spend with...
3
by: rlbSQL | last post by:
I am trying to find the last payment date made to a vendor in a table. This table has many vendors I will need to have a line for each vendor and what thier last payment date is. I assume it...
4
by: kjflash | last post by:
Hi, Let's say I have a table containing payment information: CustID, PaymentDate, PaymentAmount. Here is some sample data: CustID Date Amount 01 ...
13
by: Wayne | last post by:
I have just experienced my first late paying client. By "late" I mean that the invoice is now almost 2 months overdue. I don't think that the client is maliciously withholding payment - rather...
1
by: myemail.an | last post by:
Hi all, I am a novice to Access, and was wondering if I could get some help on a problem I can't solve. I have a database with customer payments, structured like this: customer code type of...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.