referring to a control on a tab

  • Thread starter Thread starter bob bob via AccessMonster.com
  • Start date Start date
B

bob bob via AccessMonster.com

I have a form called Exams and on it is a two-page tab control. I want the
first page, called Today, to be visible at all times. I want the second
page, called Previous, to be visible only under a certain condition. It
should be visible when its subform, called History, which uses a query
called Find_history to locate records, actually finds records. That is,
when the query finds no record, and the subform is blank, the tabbed page
should not be seen.

My problem is that I don't know how to refer to the controls on the tab.
 
You refer to controls on a tab page just as if the tab page were not there
and the control were on the form itself.
 
I'm doing something similar in a database. If the subform's recordcount = 0, then me.NameOfPage.visible = false, else
me.NameOfPage.visible = true.

HTH,
Debbie

|I have a form called Exams and on it is a two-page tab control. I want the
| first page, called Today, to be visible at all times. I want the second
| page, called Previous, to be visible only under a certain condition. It
| should be visible when its subform, called History, which uses a query
| called Find_history to locate records, actually finds records. That is,
| when the query finds no record, and the subform is blank, the tabbed page
| should not be seen.
|
| My problem is that I don't know how to refer to the controls on the tab.
|
| --
|
 

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