0
1

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.

IIF文の[]位置

Last updated at Posted at 2019-12-07

プロパティ内IIF文の[]位置によるエラーについて。
下記は、2表をクエリで結合済み。IsNull以下の値がテーブルに存在していなければ
T_sampleのカラムを、存在していればT_sample_afterのカラムを
フォームに呼び出す。

例文
=IIf(IsNull([T_sample].[kDate]),[T_sample].[kDate],[T_sample_after].[kDate])

これで試したところ、該当フォームにエラーが出てしまった。

=IIf(IsNull([T_sample.kDate]),[T_sample.kDate],[T_sample_after.kDate])

正しくは、こう。
はじめ、テーブル名とカラム名は別々でくくらなければならないと考えてていたが、
どうやら一括でくくるのが正しいらしい。

以上

0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?