
Code:
Private Sub Afb_ZON_Click()
If Not Dir(CurrentProject.Path & "\Iconen\Licht\" & Me.Afb_ZON) = "" Then
Me.Afbeelding91.Picture = CurrentProject.Path & "\Iconen\Licht\" & Me.Afb_ZON
Else
Me.Afbeelding91.Picture = ""
End If
If Me.Dirty Then Me.Dirty = False
Me.Repaint
End Sub