Disable image click

bd528

Registered User.
Local time
Today, 08:16
Joined
May 7, 2012
Messages
111
Hi,

I have some images on my form that I'm using as buttons, based on On Click

Under certain circumstances, I'd like to disable these "buttons". Is there a way to do this, as I can't find an Enabled property.

Thanks
 
Are those circumstances something you could put into an IF statement?

If (circumstance = true) Then
Exit Sub
End If
 
(Alternatively you could set the Visible property to No. That would disable it.)
 
Are those circumstances something you could put into an IF statement?

If (circumstance = true) Then
Exit Sub
End If
Yeah, I disable some other things at the same time, so I could do an IF on that.

Thanks
 
The trouble with images acting as buttons is that its not always obvious which images are buttons...

And on that point, the other thing you could do is make an exact copy of your image. Place it on top of the one with the click event & make it hidden.

Use your IF statement to make it visible thus effectively hiding the first one.
That prevents it being clicked...!
 
The trouble with images acting as buttons is that its not always obvious which images are buttons...

I have so few images, and the selected images are so obviously buttons, that there's never any confusion

And on that point, the other thing you could do is make an exact copy of your image. Place it on top of the one with the click event & make it hidden.

Use your IF statement to make it visible thus effectively hiding the first one.
That prevents it being clicked...!
I do like this idea though - thank you.
 
Just out of interest, what's wrong with just using buttons - they can include both text & an image (at least from Access 2010 onwards - possibly 2007 on...)
 
Just out of interest, what's wrong with just using buttons - they can include both text & an image (at least from Access 2010 onwards - possibly 2007 on...)
Great question. When I first started using Access, I didn't know I could add images to buttons, and used images as buttons instead.

I've now changed all my images to buttons with images, and it works great - thank you.
 

Users who are viewing this thread

Back
Top Bottom