Storing a text list for reference

I am editing a database that was created by somebody else. In my database, I have an area that shows an employee’s picture, their name and the date they were hired. I get this information from a separate notes database. This part works fine.

What I can’t get working is to have this picture and employee information change on a daily basis. What I have tried to do is create a “Previous Employees” field on the form in question. In the PostOpen event, I use the LotusScript FieldAppendText property to add a value to the field in the effort to create a text list. In my code, I have a loop that checks the current opened document against that list and if it finds an occurance of the value from the document in the list, it loops through and moves on to the next document until I come to one that doesn’t appear in the field. This way I always have a new picture and information appear on my form. This is the problem, I always end up with the same employee picture and information, and my “Previous Employees” field always shows that current employee.

I get the documents from a view in the separate database I mentioned earlier. If I roll to the end of the view after having displayed all the new employees before more are added, I will want to simply clear out the “Previous Employees” field and start over. The view in question has a selection formula that makes it only show new employees over the last six months, so it will constatnly update with new employees on its own.