simon551
IS-IT--Management
- May 4, 2005
- 249
Hi,
I have a table with stock trades (many in a day) I want to pull the first and last trade on each day with corresponding price. Is it possible to do this all on one line so that I can then compute average change? I'm thinking Dlast is the way to go but can't get it to work.
Any help is appreciated:
LastPrice: DLast("Price","tblTrade","Hour = " & DMax("Hour",tblTrade"))
This is giving an error: invalid string
I have a table with stock trades (many in a day) I want to pull the first and last trade on each day with corresponding price. Is it possible to do this all on one line so that I can then compute average change? I'm thinking Dlast is the way to go but can't get it to work.
Any help is appreciated:
LastPrice: DLast("Price","tblTrade","Hour = " & DMax("Hour",tblTrade"))
This is giving an error: invalid string