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 1 year has passed since last update.

Microsoft Access メモ

Last updated at Posted at 2021-11-10

フォームをオープン (VBA)

Sub formOpen()
  DoCmd.OpenForm "F_にゃんこ抽出条件"
End Sub

フォームの値をクエリのパラメータに使用する方法

項目 説明 備考
=[FORMS]![フォーム名]![コントロール名] クエリ デザインモードの抽出条件に記述する 入力候補がつかえR
SELECT
 *
FROM
 T_にゃんこデータ
WHERE (((T_にゃんこデータ.[キャラクター名])=[FORMS]![F_にゃんこ抽出条件]![にゃんこ名1]));

Switch関数を使ったSQL

SELECT 
 name,score,
 SWITCH(score >= 80, '○',score >50 AND score <= 79, '△',score <= 49, '×') AS grade 
FROM 
 student;

参考

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?