alsoascientist
Registered User.
- Local time
- Today, 08:59
- Joined
- Mar 26, 2012
- Messages
- 39
I have a from with subform where the columns that are visable in the subform are controlled by checkboxes on the parent form.
I am trying to find a way to ensure that ALL the columns are visible when the form is opened, however I am running into a couple of issues:
doesn't seem to work and crashes Access (I think because I am trying to use it on a subform - I have also tried it including a 'With' statement)
works, however is very impractical due to the amount of columns in the subform.
Does anyone know a way of applying this to all of the columns? Or a way to loop through the columns, maybe something like...
I am trying to find a way to ensure that ALL the columns are visible when the form is opened, however I am running into a couple of issues:
Code:
DoCmd.RunCommand acCmdUnhideColumns
doesn't seem to work and crashes Access (I think because I am trying to use it on a subform - I have also tried it including a 'With' statement)
Code:
Forms!Orders![Orders Subform].Form![ProductID].ColumnHidden = False
works, however is very impractical due to the amount of columns in the subform.
Does anyone know a way of applying this to all of the columns? Or a way to loop through the columns, maybe something like...
Code:
for each clm in subform
.ColumnHidden = False