cam,
what's your data look like?? anything like the following??
PATIENT CODE LAB NUMBER
Code:
PATIENT CODE LAB NUMBER
1 4
5
6
7
8
89
0
8
76
5
4
2 4
56
78
8
3
2
2
2
34
5
3 5
4
5
7
8
88
if it does look like that, put this function in access and run it:
Code:
function fillThoseMissingNums()
dim rs as dao.recordset
dim phold as long
set rs = currentdb.openrecordset("table name", dbopendynaset)
with rs
.movelast
.movefirst
phold = ![Patient Code FieldName]
.movenext
do until .eof
if isnull(![Patient Code FieldName]) then
.edit
![Patient Code FieldName] = phold
.update
else
if ![Patient Code FieldName] <> phold then
phold = ![Patient Code FieldName]
end if
end if
.movenext
loop
end with
rs.close
set rs = nothing
end function