Select Case MainTable.Name Case "刀具验收" Dim r As Row = Tables("刀具验收").Current Dim ls = r.DataRow.Lines("图片") FileSys.CopyFile(e.FullPath,"\\Wuyd9m8cjk2\tms\刀具检验图片\" & r("刀具名称") & ls.Count & ".jpg",True) ls.add(r("刀具名称") & ls.Count & ".jpg") r.DataRow.lines("图片") = ls End Select