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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How To Hide selected fields in a Form 1

Status
Not open for further replies.

hawkeye71

Technical User
Feb 9, 2001
45
US
Hi,
I am using Access 2000 on a Win 2K OS.
I have created a form from only ONE table.
The form contains one drop down field, which can have only two values; A or B. This drop down is also from the same table.
If I select A, the form should grey out fields C, D, and E, and I should be able to enter information in fields G, H, and I.
If I choose B from the dropdown, the form should grey out fields G, H, and I, and I should be able to enter information in fields C, D, and E.

Thanks,
Indiana
 
Hi

In After update event of the drop down (MyCombo)

C.Enabled = (MyCombo="B")
D.Enabled = (MyCombo="B")
E.Enabled = (MyCombo="B")
G.Enabled = (MyCombo="A")
..etc get the idea?

Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top