A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How do I hide a subform?



 
 
Thread Tools Display Modes
  #1  
Old May 7th, 2008, 10:44 AM posted to microsoft.public.access
Stapes
external usenet poster
 
Posts: 321
Default How do I hide a subform?

Hi

I ahev a subform called Vat_Rate which I am trying to hide on
occassions.

I have tried

Me.Vat_Rate.Visible = False

and

Forms![Order Form]![Order Details].Form.[VAT Rate].Visible = False

I keep getting Object doesn't support this property or method.

Stapes
  #2  
Old May 7th, 2008, 11:24 AM posted to microsoft.public.access
Dennis
external usenet poster
 
Posts: 1,222
Default How do I hide a subform?

Forms![MainFormName]![Vat_Rate].Visible = False

"Stapes" wrote:

Hi

I ahev a subform called Vat_Rate which I am trying to hide on
occassions.

I have tried

Me.Vat_Rate.Visible = False

and

Forms![Order Form]![Order Details].Form.[VAT Rate].Visible = False

I keep getting Object doesn't support this property or method.

Stapes

  #3  
Old May 7th, 2008, 12:56 PM posted to microsoft.public.access
BruceM[_2_]
external usenet poster
 
Posts: 1,763
Default How do I hide a subform?

If this code is in the main form's code module, Me.Vat_Rate.Visible = False
should work if Vat_Rate is the name of the subform control. Note that this
is not necessarily the same thing as the name of the subform. Does Vat_Rate
show up as one of the Intellisense choices after you type Me.?

"Stapes" wrote in message
...
Hi

I ahev a subform called Vat_Rate which I am trying to hide on
occassions.

I have tried

Me.Vat_Rate.Visible = False

and

Forms![Order Form]![Order Details].Form.[VAT Rate].Visible = False

I keep getting Object doesn't support this property or method.

Stapes


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:52 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.