SELECT id FROM Activity WHERE important = see below
IF [Forms]![Search]![important] = false, поиск по true и false
IF [Forms]![Search]![important] = false
true
false
IF [Forms]![Search]![important] = true, поиск только true
IF [Forms]![Search]![important] = true
Я надеюсь, вы понимаете, что я хочу сделать. Это возможно?
Попробуйте это:
SELECT id FROM Activity WHERE important = @important OR @important = false
Или, может быть (как сказал ammoQ)
SELECT id FROM Activity WHERE important OR NOT [Forms]![Search]![important]
Вероятно, самая короткая форма, хотя и не очень читаемая:
SELECT id FROM Activity WHERE important OR NOT @important