Hi.
> What is it that I'm doing wrong?
You're referring to the subform as if it were a form. It isn't. When the
main form is open, the main form is a member of the Forms Collection and the
subform isn't -- because it's a control on the main form. Determine the name
of the control, and you'll be able to manipulate the subform in code. In the
main form's code module, try:
Me!MyCtrlName.Visible = False
. . . where MyCtrlName is the name of the control displaying the subform.
HTH.
Gunny
See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips.
(Please remove ZERO_SPAM from my reply E-mail address so that a message will
be forwarded to me.)
- - -
If my answer has helped you, please sign in and answer yes to the question
"Did this post answer your question?" at the bottom of the message, which
adds your question and the answers to the database of answers. Remember that
questions answered the quickest are often from those who have a history of
rewarding the contributors who have taken the time to answer questions
correctly.
> Pleeeaaase Help!
>
[quoted text clipped - 13 lines]
>
> Would greatly appreciated any advice you can give me.
Gabby Girl - 23 Oct 2005 05:23 GMT
Thank you so much. Works beautifully.
> Hi.
>
[quoted text clipped - 43 lines]
> >
> > Would greatly appreciated any advice you can give me.
'69 Camaro - 23 Oct 2005 05:46 GMT
You're welcome!
Gunny
See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips.
> Thank you so much. Works beautifully.
>
[quoted text clipped - 57 lines]
>> >
>> > Would greatly appreciated any advice you can give me.