Set fso = CreateObject("Scripting.FileSystemObject")
If fso.FileExists("\pic\" + Me.学号.Value + ".jpg") Then
Me.照片.Picture = "\pic\" + Me.学号.Value + ".jpg"
Else
Me.照片.Picture = "\pic\cat.jpg"
End If
Set fso = CreateObject("Scripting.FileSystemObject")
If fso.FileExists(strpath+"\"+ Me.学号.Value + ".jpg") Then
Me.照片.Picture = strpath +"\"+ Me.学号.Value + ".jpg"
Else
Me.照片.Picture =strpath &"\cat.jpg"
End If
Set fso = CreateObject("Scripting.FileSystemObject")
If fso.FileExists(".\pic\" + Me.学号.Value + ".jpg") Then
Me.照片.Picture = ".\pic\" + Me.学号.Value + ".jpg"
Else
Me.照片.Picture = ".\pic\cat.jpg"
End If