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

Home Posts Topics Members FAQ

To calculate accumulated value

I have a table “IGPM”, with three fields: “DATE”, ““ACCUMULATED” , " INDEX”.
The date is my primary key, the index stores the IGP of the index of the
month, and accumulated it must store to you, automatically collected of the
values of the field of the index (being multiplied). Necessary that it is the
value of the future of the fields, not of pasts, thus, when inserting new
data in INDEX, he must bring updated all the COLLECTED registries,
multiplying this value to his, thus:

Date Index accumulated
01/06 1,15 1,15 - it
does not have reserve, repeats the value

now I add a registry :

Date Index accumulated
01/06 1,15 1,38 IT
CHANGED therefore 1,15*1,20=1,38
02/06 1,2 1,2 it
does not have reserve, repeats the value

to add plus one

Date Index accumulated
01/06 1,15 1,863 IT CHANGED
therefore 1,15*1,20*1,35=1,863
02/06 1,2 1,62 IT
CHANGED therefore 1,20*1,35=1,62
03/06 1,35 1,35

How can I make this function?

Regards,
Marcelo

Brasil

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

Oct 31 '06 #1
0 1940

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

Similar topics

1
by: Building Blocks | last post by:
Hi, All I need is a simle calculate form script which contains this: A script that can handle text input, radio buttons, checkboxes, and dropdowns. Each one of these variables will contain a...
5
by: Joe | last post by:
Hi, This may seem like a strange thing to want to do, but here goes ... Given an arbitrary element in an HTML page (eg. <td id="bob">...), is there a method I could use to fetch the...
1
by: Johs. | last post by:
Hello I have a table with dates and numbers. I create sums pr. years with a query, but how can I create accumulated sum in the column accumulated? Accumulate sums Year Sum Accumulated
6
by: Herrcho | last post by:
in K&R Chapter 6.3 it mentions two methods to calculate NKEYS. and points out the first one which is to terminate the list of initializers with a null pointer, then loop along keytab until the...
6
by: luanhoxung | last post by:
dear all!! i met the headache problem in setting value for some controls in my form. i have 2 combo box in form F1. i want to set value for some textbox in F1 when i choose value from 2 combo...
0
by: Marcelo Henderson via AccessMonster.com | last post by:
I have a table “IGPM”, with three fields: “DATE”, ““ACCUMULATED” , " INDEX”. The date is my primary key, the index stores the IGP of the index of the month, and accumulated it must...
5
chunk1978
by: chunk1978 | last post by:
hey... can anyone show me how to calculate sums to the 2nd decimal only? like: 5.50 + 4.00 = 9.50 i seriously have zero idea and could defo use some help...thanks! <script...
5
by: Michael | last post by:
Hi. I need dinamically calculate input text field based on parent static TD before showing content of input. Please, advice. Michael
3
by: coolguyraj | last post by:
I have a javascript code to take value from two text boxes and calculate on triggering the "OnBlur" function and display in the third box. The code works fine with one line item,If i have more...
6
by: rrstudio2 | last post by:
I am using the following vba code to calculate the median of a table in MS Access: Public Function MedianOfRst(RstName As String, fldName As String) As Double 'This function will calculate the...
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
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...
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 projectplanning, 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: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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.