Full Version: Hide a picture of a subform
UtterAccess Discussion Forums > Microsoft® Access > Access Forms
tlsn4
I need to hide a picture on my subform when a cmd button for next record is pressed on the main form.

Tried this, but it didn't work.

me.subformname.picturename.visible = false
freakazeud
Hi,
try:

Me!Subform.Form.Control.Visible = False
or
Forms!Mainform!Subform.Form.Control.Visible = False

One of the two should work.
Check this for more on reference issues
HTH
Good luck
tlsn4
Worked like a charm!! Thanks freakazeud!!
freakazeud
You're welcome.
Glad I could assist.
Good luck on future projects!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.