Simplest solution might be to OpenRecordset on the table (sorted by Item
presumably.)
In your code, loop through the recordset.
If Not IsNull([Part Number]), then store the value in a variable.
Else (if it is null), Edit, assign the value from the variable, and Update.
MoveNext, and Loop until EOF.
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users -
http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"2D Rick" <rb*******@compuserve.comwrote in message
news:11**********************@l53g2000cwa.googlegr oups.com...
>
I imported a text file that lacks a "Part Number" for each record.
Each blank below a given "Part Number" should have the same "Part
Number" until the next "Part Number".
How can I fill in the blanks?
Sample table below:
Part Number PO Number Item
3827092-111 G00026664 1110
G00026664 1181
G00026664 1229
G00026664 1342
3862002-1 G00026664 1236
G00026664 1393
3862012-1 G00026664 1236
G00026664 1393
3862144-2 G00026664 1283
G00026664 1293
G00026664 1412
G00026664 1413
4-141-089-03 G00022901 0030