AutoCode("jxry{0,3}", DMaxNumber("编号")+1)


从其它表取数据组成自动编号

AutoCode(FieldValue(0,"供货商编码","[供货商名称]='"+[协议供应商]+"'","供货商表")+"{0,5}",[ID])