2009-12-03 3 views

Répondre

3

Essayez ceci:

SELECT id 
FROM Activity 
WHERE important = @important OR @important = false 

Ou, peut-être (comme ammoQ dit)

SELECT id 
FROM Activity 
WHERE important OR NOT [Forms]![Search]![important] 
2

probablement la forme la plus courte, mais pas très lisible:

SELECT id 
FROM Activity 
WHERE important OR NOT @important 
+0

+1 adoré , ty –

+0

Que fait le '@'? – Johan

+0

cela signifie: "votre variable ici" –