
コンボボックスにテーブルやクエリーのフィールド名(フィールド リスト)を設定する方法です。
例
たとえば、このようなフォームにコンボボックス(comboFieldList)が貼り付けてあるとします。
このコンボボックスに次のテーブルのフィールド名を設定するには下記のように記述します。

Private Sub Form_Load() '値集合タイプ Me.comboFieldList.RowSourceType = "Field List" '値集合ソース Me.comboFieldList.RowSource = "T_血液型" End Sub
実行結果

スポンサーリンク