开发者

List Box enable/disable one column

Access 2007: 开发者_开发百科 Is it possible to enable/disable one column in a List Box on a form. For example: Say you have 2 columns A,B - If Me.A = title Then Me.B.Enabled = True Else Me.B.Enabled = False.

If so, where would it go? On Got Focus, On Click??

Thanks


I'm not sure what you mean by disable, but you can hide a column by adjusting the ColumnWidth.

So if you wanted to hide column2:

Me.MyListBox.ColumnWidths = (1 in;0;1 in)

And to hide column1:

Me.MyListBox.ColumnWidths = (0;1 in;1 in)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜