If Forms("查看窗口").Opened Then '如果窗口已经打开
Dim pbx As WinForm.PictureBox = Forms("查看窗口").Controls("PictureBox1")
If Tables("person").Current Is Nothing Then
pbx.Image = Nothing
Else
pbx.Image = Tables("person").Current.DataRow.SQlLoadImage("photo") '从后台提取照片并显示
End If
End If
老师,如何从后台加载之前判断照片是否存在,或者不存在就不加载好了,但是现在这个,后台没照片,就会弹出错误,参数无效