hello listers, i would like to thank everyone who has helped me these past couple of weeks with writing my first program EVER! after six weeks of struggle it finally works and i have you guys to thank for it. thanks. diana here are a few useful tips on trapping errors when dealing with a lot of records. the first tip is some while loops that check if the dir exists and prompt you to create the dir if it doesn't exist (this way you don't have to start from record one everytime you come across and 'invalid source name'!). the second tip shows you where the problem is in the script. schlFileName=(fullpath+schlpath).AsFileName schldirFileName=schlFileName.ReturnDir while (schldirFileName.IsDir.Not) msgbox.warning(schldirFileName.AsString,"Directory does not exist") end LogFile = LineFile.Make("c:/temp/log.log".asfilename, #FILE_PERM_WRITE) for each aRec in theRecords LogFile.WriteElt("The srcname is "+thesrcname.asstring) end LogFile.Close If there is a crash you can see where things go wrong.