Code:
Private Sub Form_Load()
DoCmd.Maximize
Me.Image56.Picture = "K:\Staff Folders\JinLong\New Folder\default.jpg"
End Sub
Private Sub Image56_Click()
Dim DBpath As String
If [Yield Trend Chart].Value Is Not Null Then
DBpath = [Yield Trend Chart]
Me.Image56.Picture = DBpath
Else
Me.Image56.Picture = "K:\Staff Folders\JinLong\New Folder\default.jpg"
End If
End Sub
what is wrong with my codes?
there is an error over at
[cod]If [Yield Trend Chart].Value Is Not Null Then[/code]
what i need to do is that when the field [Yield Trend Chart] is empty, then set a default image as the image..