LoginSignup
0
0

More than 1 year has passed since last update.

AccessのVBAでコンボボックスの2列目の値を取得

Last updated at Posted at 2022-12-09

概要

コンボボックスは ↓ こういう設定。
image.png

image.png

画面に見せる値とシステム内部的に処理する値を変えてる。

選択している値はValueで取ってこれる。
でもそうじゃなくて、画面に見せてる方の値(『』『通常』『その他』)を取得したい時。

やり方

コンボボックスのColumnのインデックスは 0 からスタートするので、 2 列目は 1

Me.cmb_tester.Column(1)

参考サイトさん

バージョン

Windows 10 Pro 21H2 OSビルド 19045.2311
Microsoft Access for Microsoft 365 MSO (バージョン 2210 ビルド 16.0.15726.20188) 32 ビット

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0