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

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Yes.
In the AfterUpdate event of the "another field", the fields you want to now display, set their Visible property to True.
HTH
 
Upvote 0
is this supposed to be done through code or can i do it by selecting from a drop down box??
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,214,784
Messages
6,121,536
Members
449,037
Latest member
tmmotairi

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
Back
Top