Use renyuan(suppose renyuan is empty at the beginning. there are no records in it)for i=1 to 50appendreplace rybh with ireplace bmbh with "11"endforfor j=51 to 100appendreplace rybh with jreplace bmbh with "12"endforfor l=101 to 150appendreplace rybh with lreplace bmbh with "13"endforWhen you run the code above with a empty renyuan.dbf, you get a dbf you want.You can allocate every person a "rybh", and locate for that number and alter the data in the renyuan.dbf in the software.Sorry, I can't type any Chinese Character in my computer today.