0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

主キーはコンボボックス内の必要カラム

Posted at

コンボボックスをウィザードで作成した際、中でtanton_Cのカラムだけ呼び出したいと
tantou_Cのみを使用する設定にして作成完了すると、値集合ソースの中はこうなっている。

SELECT [T_sample].[ID], [T_sample].[tantou_C] FROM T_sample;
[ID]は主キーである。

[ID]は要らないし、おまけにコンボボックスをプルダウンさせるとIDのみ出力される。
プロパティの連結列を1→2に変えてみると、きちんとtantou_Cが出力されるが…

ならば連結列は1のままで、[T_sample].[ID]を消してしまってはどうか。
結果…プルダウンの中身が空白となった。

どうやら値集合ソースのSELECT文内の主キーは使わなくても外せないようだ。

以上

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?