Microsoft Access help

Tyrath

Hero of Vana'diel
Adventurer
Joined
Oct 27, 2004
Messages
10,266
Age
37
Main Job
DarkKnight-Male
Secondary Job
Warrior-Male
Third Job
BlackMage-Male
Linkshell
Integral
FFXIV
Tyrath
I've been playing around with Microsoft Access for school lately...I had a question about how to do something ;x

Does anyone know how to make it so that a picture I put on the form disappears when I single click it with the mouse? I looked into the single click under properties and it gave me 3 choices. 2 of them were Macro and Expression builder. I have no idea how to do either..

The third one brought me to visual basic where I tried to code Object.Visible = False but I don't really know how to make it work with Access ;x

So uhh, if anyone knows how I can make the thing disappear using any of the 3 methods, please, enlighten me!

Thanks :)
 
BRB. I'm on the case expect response in 20m. What are you doing this for and why do you need to make a picture disappear when you click on it?
 
Ok, all done.

So, drag a "Image" from the toolbox onto your form. A pop-up should display and get you to select your picture.

Note the name of your picture (mine was called Image0)
After, click on the Image, and hit the Event tab.

Click on the "On Click" box, and hit the Ellipsis (...)
Select Code Builder.

Copy and Paste the line between Private and End Sub.

Private Sub Image0_Click() 'The event and beginning of the sub-routine

Image0.Visible = False 'Making the object disappear

End Sub 'The end of the sub-routine

Tested it and worked fine. Tell me if there is any more problems.
 
Doing this for a school project. The teacher wants the form to look good and stuff ;x I wanted to start it with an image related to what I'm doing and then clicking it to remove it.

Anyways, I was trying to do it through properties, I guess thats why it didn't work ;x

Thanks a bunch. I couldn't open my project at home for some reason. But I tried it on another form and it works so it should be fine.

Thanks again :)
 
Back
Top