P
penguin66
I'm trying to automate data import from a text file into access using queries
so my users can follow the progress of the data import and clean-up. I've
run into a snag in the clean-up portion of my queries. I have several
columns that need to be filled with data. My criteria for filling the field
is: If the value is null, copy the value of the record above. The records
are sequentially numbered, so I thought that a dlookup function would work,
but it only will fill in the value on the next row and nothing further. Is
there a way to get the columns to fill in without user intervention?
The statement I'm using in my query is:
iif ([newpiorgcode]="",DLookUp("[newpiorgcode]","textimport8","[id] =" &
[id]-1), [newpiorgcode])
I've tried this as an update query and also tried it as a make table query,
but no luck.
Hope I've been able to explain myself clearly.
so my users can follow the progress of the data import and clean-up. I've
run into a snag in the clean-up portion of my queries. I have several
columns that need to be filled with data. My criteria for filling the field
is: If the value is null, copy the value of the record above. The records
are sequentially numbered, so I thought that a dlookup function would work,
but it only will fill in the value on the next row and nothing further. Is
there a way to get the columns to fill in without user intervention?
The statement I'm using in my query is:
iif ([newpiorgcode]="",DLookUp("[newpiorgcode]","textimport8","[id] =" &
[id]-1), [newpiorgcode])
I've tried this as an update query and also tried it as a make table query,
but no luck.
Hope I've been able to explain myself clearly.