Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Enable/Disable Subform 2

Status
Not open for further replies.

Kjonnnn

IS-IT--Management
Jul 14, 2000
1,145
US
I'm creating a form for Performance Reviews to be used by our HR Department.

Most of the form will apply to every employee ... there is a section that has to do with employees that have supervisory duties and responsibilities.

This is what I've done. I've created a form from a table that has all the things that are common to everyone. I have a another related table that just has things that apply to supervisory personnel. I also have a YES/NO check box to denote whether the current employee is Supervisory or not.

MY QUESTION:

Is there a way that if the above mentioned check box is checked, the things that apply to supervisory personnel will in appear in the main form as a subform and if its not checked, it won't?
 
Just make the supervisor section visible or invisible based on the value in the checkbox.

Put this code in the on_current section and the checkbox after update events.

If me!checkbox = true then
me!supervisorsubform.visible = true
else
me!supervisorsubform.visible = false
end if
Maq B-)
<insert witty signature here>
 
One thing.....

Where exactly do you put those commands?
 
And what would &quot;ME&quot; be?
 
Hi!

You put the commands in the Form_Current event procedure.

hth Jeff Bridgham
bridgham@purdue.edu
 
me is the current form and I think I answered your other question in my first post. Maq B-)
<insert witty signature here>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top