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
 
Back
Top