W
WolfPack
I have a filtered form (showing only records associated with a particular
primary key (DocID).
Form Name = frmTaskDateStamp
Table Name = tblTaskDateStamp
This table has a StatID field (autonumbered) and a TimeStamp field.
I want to look up data from the TimeStamp field in the previous record.
Using the following code, I get data from the previous record in the TABLE,
which is not necessarily the previous record in the (filtered) FORM.
=DLookUp("[TimeStamp]","tblTaskDateStamp","[StatID]=Forms![StatusDateStamp]![StatID]-1")
How can I get the DLookUp function to retreive data from the previous record
in the filtered FORM, not the table?
primary key (DocID).
Form Name = frmTaskDateStamp
Table Name = tblTaskDateStamp
This table has a StatID field (autonumbered) and a TimeStamp field.
I want to look up data from the TimeStamp field in the previous record.
Using the following code, I get data from the previous record in the TABLE,
which is not necessarily the previous record in the (filtered) FORM.
=DLookUp("[TimeStamp]","tblTaskDateStamp","[StatID]=Forms![StatusDateStamp]![StatID]-1")
How can I get the DLookUp function to retreive data from the previous record
in the filtered FORM, not the table?