How do I hide a subform?

S

Stapes

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
 
S

Stapes

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

Ignore that - bullshit error message from bug ridden access.
 
B

BruceM

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.?
 
L

leeling

Stapes said:
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
 

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

Top