T
Than
Guest
I try to run below if statement in the report code. When there is no student's image, the picture should be noimage.jpg. However, it always skips the true condition even if Me![Photo_location] = Null. Please take a look my attachment and unzip it in "C:\"
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Dim Path As String
'path to the folder with the images
Path = ""
If Me![Photo_location] = Null Then
Me![Image1].Picture = "C:\CMIS108\pic\noimage.jpg"
Else
Me![Image1].Picture = Path & Me![Photo_location]
End If
End Sub
please download my file at "http://s93230472.onlinehome.us/temp/cmis108.zip" . The file size is about 1.31 MB
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Dim Path As String
'path to the folder with the images
Path = ""
If Me![Photo_location] = Null Then
Me![Image1].Picture = "C:\CMIS108\pic\noimage.jpg"
Else
Me![Image1].Picture = Path & Me![Photo_location]
End If
End Sub
please download my file at "http://s93230472.onlinehome.us/temp/cmis108.zip" . The file size is about 1.31 MB