Hello friends!
I have an image type control called "photo", with no image, and a delete button on a form.
I would like when I click on the delete button to display a message like "There is no photo to be deleted!".
I already tried all these codes, one at a time, but when I click on the delete button nothing happens, although they don't give a compilation error:
I have an image type control called "photo", with no image, and a delete button on a form.
I would like when I click on the delete button to display a message like "There is no photo to be deleted!".
I already tried all these codes, one at a time, but when I click on the delete button nothing happens, although they don't give a compilation error:
Code:
If IsEmpty(Me.photo.Picture) Then
MsgBox "There are no photos to delete!", vbInformation, "INFORMATION"
end if
Code:
If Me.photo.Picture = Empty Then
MsgBox "There are no photos to delete!", vbInformation, "INFORMATION"
end if
Code:
If Me.photo.Picture = "" Then
MsgBox "There are no photos to delete!", vbInformation, "INFORMATION"
end if
Code:
If IsNull(Me.photo.Picture) Then
MsgBox "There are no photos to delete!", vbInformation, "INFORMATION"
end if
Code:
If Me.photo.Picture = Null Then
MsgBox "There are no photos to delete!", vbInformation, "INFORMATION"
end if