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

Calculation query help MS Access

22
This is an example of what I need to do:

Data in an ACCESS table:

CustomerID: AAA
Pay_Month: Dec-2006
Type:General
Adjust_FromDate:N/a (for general payments, no adjustments)
Adjust_EndDate: N/a
Amount: 100
Months:n/a
Ratio:n/a

CustomerID: AAA
Pay_Month:Jan-2007
Type: Adjustment
Adjust_FromDate:12/1/2007
Adjust_EndDate:12/31/2007
Amount:100
Months:1 (number of months of adjustment period)
Ratio: 100/1=100 (amount/months)

CustomerID:AAA
Pay_Month:March-2007
Type:Adjustment
Adjust_FromDate:12/1/2007
Adjust_EndDate:2/28/2007
Amount:300
Months:3
Ratio:100

Now, I need that the amount of adjustments be applied to the corresponding
month. This is the output I need to get.

CustomeriD:AAA
Pay Month: Jan-2007
General Payment:0
Ajustment Payment:100 (Adjustment reported on march)

Pay month:Feb-2007
General Payment:0
Adjustment Payment:100

In case that a general lpayment be done in a particular month, the program
needs to be able to sum the tow amounts to obtain a total amount (general +
adjustment)
Sep 24 '07 #1
1 1281
Scott Price
1,384 Expert 1GB
Welcome to the Scripts, EORTIZ!

Please remember to provide a meaningful title to your threads! I've changed it for you this time, but in the future please choose something a little more meaningful.

I'll let some of our experts a little more versed in sql queries help you on the particulars of your problem.

Regards,
Scott
Sep 24 '07 #2

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

Similar topics

5
by: Aravind | last post by:
Hi folks. I have a form, frmHistory, that has the following code for its On Open event. =-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-= Private Sub Form_Open(Cancel As Integer) ...
15
by: Pres | last post by:
I am not an experienced programmer. I do have a question regarding workday calculations. I have 3 fields. CURDATE, NUMDAYS, CALCDATE After entering the first two fields, normally the current...
6
by: jimfortune | last post by:
In: http://groups.google.com/group/comp.databases.ms-access/msg/60d7faa790c65db1 james.ea...@gmail.com said: :Ok, I've answered the first half of my own question. From a MSDN :article, I...
4
by: vg-mail | last post by:
Hello all, I have identical design for form and report but I am getting calculation error on form and everything is OK on report. The form and report are build up on SQL statement. The...
4
by: heckstein | last post by:
I am a novice working in Access 2002 trying to run a query I created. I am receiving the error "scaling of decimal value resulted in data trunction", which I have determined is due to this...
3
by: laurentc via AccessMonster.com | last post by:
Hi. I have an issue with my Access project. I have rather big tables of data (about 11 000 rows). These tables are historical product quotations, so they are very simple : - MyDate...
6
by: KimC | last post by:
I have a question about how to perform a calculation. I'm using Access 2003 in Windows XP. I have three fields of different measurements, which I'll call A, B, and C. Those numbers get crunched...
1
by: Colin Clark | last post by:
Hello, I have a database of scores for a sports club. I want to display a continuous subform showing a person's scores for the season along with a running calculation based on those scores (the...
1
by: c8tz | last post by:
This is a query I have created that picks up the top 3 dates for this data (for example) : Tree Pos2 Date 1 15 23/08/2005 1 20 12/02/2006 1 32 15/10/2006 ...
2
by: Will | last post by:
Hi, I need to handle blank values in a query calculation. I have 636 records at the moment but when I sum over these records the blank fields are not returned. I have looked around here and on...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
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,...

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.