melmckee72
New Member
I am writing a program in which a user can update information within a table. I have a one to many relation between two tables within the database. I would like to be able to display all the records which meet the user's search criteria and then allow them to go through the fields one by one to update.
The problem I am having is getting all the records to display first, and then going through the update process.
I am using a for each loop to find the records and display them, then an update statement to allow user input.
for each bempfunc where bempfunc.bfstnme = bemp.bfstnme and
bempfunc.blstnme = bemp.blstnme:
display bfcde bfjob with fram func down.
update bfcde bfjob with fram func.
END.
Any help would be appreciated.
Thanks
The problem I am having is getting all the records to display first, and then going through the update process.
I am using a for each loop to find the records and display them, then an update statement to allow user input.
for each bempfunc where bempfunc.bfstnme = bemp.bfstnme and
bempfunc.blstnme = bemp.blstnme:
display bfcde bfjob with fram func down.
update bfcde bfjob with fram func.
END.
Any help would be appreciated.
Thanks