SELECT TableName.KeyField, TableName.TypeID, (TableName.TypeID-T2.TypeID) AS
DeltaTypeID
FROM TableName LEFT JOIN TableName AS T2 ON TableName.KeyField-1=T2.KeyField;
"FSHOTT" wrote:
> Can someone show me how to create a field in a table or query which is made
> up of other fields in the in the current and previous records? That is say I
> have field TypeID in a Table and I would like to add a new field DeltaTypeID
> which compares (=) TypeID from record x to TypeID from record x-1.
> --
> frank-a
|