
Originally Posted by
Access_Novice
Ok. What is FAAID? Is it the name of the List Box, the column to be hidden, a text box?
I don't see how the property "Column Hidden" is relevant to your List Box. As June7 pointed out, this property is for DS view of your form. As others have pointed out, your listbox has its own properties and if you want to hide a column within the listbox you will need to use the widths property of the list box control. The value of zero will hide that column within the listbox, respectively.
Typicaly, this property is edited in design view. If you want it to be dynamicaly updated, you need to have a specific event fire some VBA code. I use code similar to the following to dynamicaly adjust the widths property for combos and list boxes.
Code:
Dim strQuote As String
strQuote = """"
Dim strWidths As String
strWidths = "0" & strQuote & "; " & "0.6" & strQuote & "; " & "0.7" & strQuote & "; " & "0" & strQuote
Me.cmbCont.ColumnWidths = strWidths
This example hides the first column. Its value is zero. I do not want it displayed to the user because it contains a primary key value. It also hides the last column, the fourth column.
.