how to make subform control visible from main form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all

What's the code in VB to make a subform control (command button) visible
from a command button on the main form?

I know I have to put code in the main form button's onClick event. What is
the correct code to show a subform control?
something like
me.SubformName.ButtonName.Visible = True
but this doesn't work so isn't quite right... what's wrong or missing?
please help!
TIA
rich
 
I've helped myself and found the answer...
Me.SubformName.Controls!ButtonName.Visible = True

thanks anyway
rich
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top