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?
 
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
 
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
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

 
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
 
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 test it and it worked.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.