------------------------------------------ Solution------------------------------------------
"when you add an autonum field to the table you can create a query with:
Select autonumfield-1 as Oldkey... "
[ and later join this with the original table to get data side-by-side]
Expand|Select|Wrap|Line Numbers
- ------------------------------------------ Table ------------------------------------------
- Price_date Price Dividend RecNum
- 8/1/2008 $10.00 $1.00 {916E47CB-015A-466D-A2D0-...}
- 8/2/2008 $11.00 $1.50 {CDE5006B-5D05-4A35-B144-...}
- 8/3/2008 $12.00 $2.00 {AF81D70E-B18F-405F-9D87-...}
Expand|Select|Wrap|Line Numbers
- -------------------------------------------- SQL -------------------------------------------
- SELECT RecNum-1 AS RecNum2, Auto_Price_tbl.Price_date, Auto_Price_tbl.Price, Auto_Price_tbl.Dividend
- FROM Auto_Price_tbl
- WITH OWNERACCESS OPTION;
Expand|Select|Wrap|Line Numbers
- ------------------------------------Query Output ------------------------------------------
- RecNum2 Price_date Price Dividend
- #Error 8/1/2008 $10.00 $1.00
- #Error 8/2/2008 $11.00 $1.50
- #Error 8/3/2008 $12.00 $2.00
“RecNum-1”, “RecNum – 1”, “[RecNum-1]” and “[RecNum]-1”
all to no result. There must be something about the solution that I don’t fully understand yet. Can you suggest where I might be going wrong?