>llCommit = .t. >llCommit = iif(seek(valuea,tablea,ordera), llCommit, .f.) >llCommit = iif(seek(valueb,tableb,orderb), llCommit, .f.) >llCommit = iif(seek(valueX,tableX,orderX), llCommit, .f.) >if llCommit > * do replaces here >else > * do error stuff here >endif>If that does not meet your needs, then more information is needed if you want to try to avoid issuing the SEEK() functions again.