You must have a primary key field that defines the order of the records.
Otherwise the concept of 'previous' row is meaningless. Add an AutoNumber if
necessary.
This example assumes the table named Table1 with 2 fields:
- F1 is the field you have already;
- ID is the autonumber.
Type an expression like this into the Field row in query design (all on one
line):
PriorValue: (SELECT TOP 1 F1
FROM Table1 AS Dupe
WHERE dupe.F1 Is Not Null
AND Dupe.ID < Table1.ID
ORDER BY ID DESC)
Once you verify that this is okay, change the query to an Update query
(Update on Query menu.) Access adds an Update row to the query design grid.
Then move everything inside the brackets (including the brackets) into the
Update row under F1, and in the Criteria row, enter:
Is Not Null
Run the query to fill in the blank rows.
A query statement like that inside another query is called a subquery. If
that's a new concept, here's some more info:
http://allenbrowne.com/subquery-01.html