我在MS Access 2010中有一个多选ListBox。在表单加载时,我想要值"增量资金"自动选择。这是怎么做到的?
答案 0 :(得分:1)
尝试这样的事情:
With MyListBoxName
.SetFocus
For x = Abs(.ColumnHeads) To (.ListCount - 1)
If (.ItemData(x) = "Incremental Funding") Then
.Selected(x) = True
MsgBox (.Selected(x))
End If
Next
End With