MS Access Dropdown List/Combo Box

后端 未结 4 1863
执笔经年
执笔经年 2021-01-21 13:24

This should probably be pretty simple but my Google-Fu is as yet unable to find an answer. I simply want to create a dropdown list in Access so that upon selection I can perform

4条回答
  •  情歌与酒
    2021-01-21 13:59

    How have you set the properties for your combo box?

    Perhaps you could try setting (assuming you are pulling data from Table1 with fields ID and Field1

    • Row Source: SELECT [Table1].[ID], [Table1].[Field1] FROM Table1;
    • Row Source Type: Table/Query
    • Bound Column: 1
    • Column Count: 2
    • Column Widths: 0", 1"

    and then hook into the onchange event as Chris Ballance suggests. The value property of the combo box is ID; the text will be what is in Field1.

提交回复
热议问题