I have a text log file that we have imported into Access. It is basically a report and the date of each series of records is in the header of each page. The individual records do not contain the date. The date ends up in its own record in the account field.
When we used to import this file into dbase, I used the following script to read the records, check to see if the account contained the date and fill in the date field in each of the subsequent records until it found another date as follows:
select 1
use phone
set talk off
do while .T.
if ISBLANK(date)
if ("/"$account)
curdate=account
endif
replace DATE with curdate
endif
skip
enddo
I am not particularly familiar with access. I can do the query to find the records with the date, but I have no idea how to place that date in the date field in each of the subsequent records until I find another record with the date.
The fields for the table are as follows:
PIN Time Line Extension Duration Number Account Date
Your help is greatly appreciated!
When we used to import this file into dbase, I used the following script to read the records, check to see if the account contained the date and fill in the date field in each of the subsequent records until it found another date as follows:
select 1
use phone
set talk off
do while .T.
if ISBLANK(date)
if ("/"$account)
curdate=account
endif
replace DATE with curdate
endif
skip
enddo
I am not particularly familiar with access. I can do the query to find the records with the date, but I have no idea how to place that date in the date field in each of the subsequent records until I find another record with the date.
The fields for the table are as follows:
PIN Time Line Extension Duration Number Account Date
Your help is greatly appreciated!