Dim c As new camera c.capture() '开始照相 If c.image IsNot Nothing Then '照相成功 Dim r As Row = Tables("进货.进货明细").Current If r IsNot Nothing Then Dim s As String = r("基本款号") & ".bmp" c.Save(ProjectPath & "\Attachments\" & s) '照片复制到Attachments目录 r("照片") = s End If End If