If Me.NewRecord = False Then
If Dir(CurrentProject.path & "\产品图片\" & DLookup("照片", "产品表", "产品代号 like '" & Me![产品代号] & "'")) <> "" Then
Me![照片图像].Picture = CurrentProject.path & "\产品图片\" & DLookup("照片", "产品表", "产品代号 like '" & Me![产品代号] & "'")
Else
Me![照片图像].Picture = ""
End If
End If