Populate listbox using single (delimited) field from Table (VBA)

时间:2016-07-11 20:21:14

标签: listbox access-vba access

How to do this in VBA? In table Features I have column Colors. Single field there has the following data: black; blue; yellow - delimited with ; On Access form I want to populate a listbox (lstColors) with data from that single field so that I get the list with:

black

blue

yellow

Any help appreciated!

1 个答案:

答案 0 :(得分:0)

将列表框的 RowSourceType 设置为: ValueList

RowSource 设置为字段 Colors 中的值,这是一个值列表。