Calculate cell with cell above (1 Viewer)

BlindPro

Registered User.
Local time
Today, 03:14
Joined
Jun 16, 2012
Messages
40
Hi,
I have a table look like this


I want to calculate cell with cell above

Fist record 1000
Second record 1000+1200 = 220-
third record 2200+1000 = 3200
forth recrod 3200 + 1500 = 3700

I want to do this with query, It is possible??

thanks for your help
 

BlindPro

Registered User.
Local time
Today, 03:14
Joined
Jun 16, 2012
Messages
40
No ID is not sorted in ascending and contains duplicate, Please help how can I do this??
 

G37Sam

Registered User.
Local time
Today, 14:14
Joined
Apr 23, 2008
Messages
454
Yes you can, what exactly do you want to achieve out of this?

Try:

Code:
Dim startID as integer, endID as integer
startID =0
endid = 5
msgbox Dlookup("sum(Salary)","table1","ID > " & startID & " AND ID < " & endID)
 

BlindPro

Registered User.
Local time
Today, 03:14
Joined
Jun 16, 2012
Messages
40
Oki, John Big Booty Now I have ID column that sorted ascending and have not any bread, how can i do it with DLookup?? I tried a lot, but I couldn't

I used this:

Code:
Total: [Salary]+DLookUp("Total","Query2","ID=" & [ID]-1)
 

BlindPro

Registered User.
Local time
Today, 03:14
Joined
Jun 16, 2012
Messages
40
Hey I Did it :)

with this Code:

Code:
Total: IIf([IDD]=1,[Salary],DLookUp("Total","Query2","ID=" & [ID]-1)+[Salary])

Thank you Very Much
 

Users who are viewing this thread

Top Bottom