I had hoped the answer would be in http://allenbrowne.com/subquery-01.html#AnotherRecord
But I am not having success. The example data lacks a group identifier so the example query won't work. If this can be done by query alone, it is far more advanced and complicated than I have ever attempted. I would use VBA to open and manipulate recordset object. Like:
Code:
Sub FixIt()
Dim rs As DAO.Recordset
Dim lngData As Long
Set rs = CurrentDb.OpenRecordset("SELECT * FROM Table1 ORDER BY Event;")
If Not rs.EOF Then lngData = rs!Data
While Not rs.EOF
If IsNull(rs!Data) Then
rs.Edit
rs!Data = lngData
rs.Update
Else
lngData = rs!Data
End If
rs.MoveNext
Wend
End Sub
Procedure assumes record 1 has data. Note that I changed field name from Value to Data.
Value is a reserved word. Should not use reserved words as names.