Reset imageBox on a form?

Bosve

Registered User.
Local time
Today, 23:23
Joined
Jan 27, 2010
Messages
35
How do I reset a imagebox on a form? I use a command button to reset all the other fields but it doesn't work on a image box.
The code:

Private Sub rstFields_Click()
Dim ctl As Control
For Each ctl In Me.Controls
Select Case ctl.ControlType
Case acTextBox, acComboBox, acListBox, acCheckBox
If ctl.ControlSource = "" Then
ctl.Value = Null
End If
Case Else
End Select
Next ctl

End Sub
 
If it is a picture object then you have to look at doing this

Me.Image0.Picture = ""
 
If it is a picture object then you have to look at doing this

Me.Image0.Picture = ""
Can i somehow include that line in the code above?
 

Users who are viewing this thread

Back
Top Bottom