Private Sub Command0_Click()
Dim photopath As String
photopath = "D:\Documents and Settings\Administrator\桌面\test\test\" ' 相关图片的位置
Dim db As Database
Dim temp As Recordset
Set db = CurrentDb
Set temp = db.OpenRecordset("select * from [雇员]", 2)
While Not temp.EOF
If Dir(photopath & temp![照片]) <> "" Then 'dir 是一个函数
MsgBox "有图片"
Else
MsgBox "no photo"
End If
temp.MoveNext
Wend
temp.Close
End Sub