Could the ColumnHidden Property be set to from GUI

I am trying to set the hide some column in a datasheet view of a form.

I read that column width and/or visible properties cannot do it.

VBA code can do it through columnhidden property.

I am using Office360.

I read also that this is can be done from the Format in GUI in old access versions.

My question:

Is that still available in access 2016?

If yes, where cause every thing is dimmed in the Format ribbon when I select the form or the field to be hidden.

Thanks.
Shadi SalehAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
You can do it from a right click menu. Select the column, then right-click and select "Hide Column"
0
John TsioumprisSoftware & Systems EngineerCommented:
Do you mean this ...if yes on Datasheet view right click on the field headerClipboard01.jpg
0
Shadi SalehAuthor Commented:
Thank you for the reply, but No.

I meant something in the Form design that would make it open with some fields already hidden.
0
IT Pros Agree: AI and Machine Learning Key

We’d all like to think our company’s data is well protected, but when you ask IT professionals they admit the data probably is not as safe as it could be.

John TsioumprisSoftware & Systems EngineerCommented:
just set the property visible of the fields you want to hide to "No"
0
Shadi SalehAuthor Commented:
Thanks LVL19, However your suggestion does not work for the datasheet view of a form. It works for other forms view only.
0
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
I meant something in the Form design that would make it open with some fields already hidden.
AFAIK, there is nothing in the Form Design properties that would allow you to do this. you can set the ColumnHidden property of the control in the Form's Open or Load event:

Me.YourColumnName.ColumnHidden = True

You can also set the Width to 0:

Me.YourColumnName.ColumnWidth = 0
0
Shadi SalehAuthor Commented:
I have just discovered that if I hide the columns manually by drag and drop eliminating their width in the datasheet view, saving the form, then the next time the columns are hidden. Not sure if this reliable, but it is the only GUI that does the work as I can see.

It seems that I better depend on VBA regarding this matter.

Thanks for all contributions.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Shadi SalehAuthor Commented:
I test it and it worked.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.