hide colums in datasheet view via code

  • Thread starter Thread starter Russ via AccessMonster.com
  • Start date Start date
R

Russ via AccessMonster.com

Does anyone know of a way to hide colums in datasheet view via code, I have a
couple of hidden fields on the form but when they view it in datasheet view
they show back up so I want to hide them.
Any ideas would be great!
Thanks
Russ
 
Does anyone know of a way to hide colums in datasheet view via code, I have a
couple of hidden fields on the form but when they view it in datasheet view
they show back up so I want to hide them.
Any ideas would be great!
Thanks
Russ

Code the form's load event:

Me!ControlName.ColumnHidden = True

Change ControlName to whatever the actual name is of the control.

However, the user can still view the column if they click on
Format + Unhide column, so you might want to remove that option from
the Format menu.
 

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