Hidden Fields

ElBenno

Board Regular
Joined
Jun 3, 2005
Messages
97
is it possible to hide a/many fields and have them appear after another field is populated (like a criteria - on update display XXXX fields).

Kindest Regards,

ben
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

VicRauch

Well-known Member
Joined
Mar 23, 2006
Messages
2,032
Yes.
In the AfterUpdate event of the "another field", the fields you want to now display, set their Visible property to True.
HTH
 

ElBenno

Board Regular
Joined
Jun 3, 2005
Messages
97
is this supposed to be done through code or can i do it by selecting from a drop down box??
 

mdmilner

Well-known Member
Joined
Apr 30, 2003
Messages
1,352
There's two approachs you can take, both require VBA coding.

The most basic way to build a form is to bind it to an existing table or query using the wizard interface. Slightly more complex is to use a query (SQL statement) in the recordsource and change it dynamically based on choices made by the user. This can be done with a table view type of approach.

If, on the other hand, you display each field within a bound textbox instead, which is VicRauch is discussing, you gain a lot more control over the appearance and layout of your form. Each control can be indivdidualy set Visible or Invisible using syntax in the VBA code such as Me.controlname.Visible=True

To clarify Vic's recommendation to use code. I'm about 99% certain the ONLY way to do it is via code.
 

VicRauch

Well-known Member
Joined
Mar 23, 2006
Messages
2,032
I believe it could be done with Macros, but I would not want to try.
 

Forum statistics

Threads
1,136,260
Messages
5,674,695
Members
419,520
Latest member
Jennifer4Dillon

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top