emorris1000
Registered User.
- Local time
- Yesterday, 16:42
- Joined
- Feb 22, 2011
- Messages
- 125
I need to do a numerical integration of some data, which is a breeze in Excel, but I can't figure out how to do it in Access. Here's the basic table
ID Time Value
1 1 2
2 1.4 3
3 1.7 6
4 2.1 4
What I want to do is to calculate a "dT" value that I can then multiply by the Value field.
It would look something like
dT Value dT*Value
1 2 2
0.4 3 1.2
0.3 6 1.8
0.4 4 1.6
and so on. Anyone have any idea how to do this in a single query? I think I could do it in a series of queries, but that's not efficient (involves ~100k records). I think I could do it in VBA as well, but I am sure there is an easier way to do this, which would be great because I am going to need to do this in a bunch of places.
ID Time Value
1 1 2
2 1.4 3
3 1.7 6
4 2.1 4
What I want to do is to calculate a "dT" value that I can then multiply by the Value field.
It would look something like
dT Value dT*Value
1 2 2
0.4 3 1.2
0.3 6 1.8
0.4 4 1.6
and so on. Anyone have any idea how to do this in a single query? I think I could do it in a series of queries, but that's not efficient (involves ~100k records). I think I could do it in VBA as well, but I am sure there is an easier way to do this, which would be great because I am going to need to do this in a bunch of places.