Or you might be able to use an SQL statement that looked like the following
SELECT TableName.*
FROM TableName
WHERE IIF(1=1,[SomeField]<100,True)
In Design view, I think that might look like the following:
Field: Expr1: IIF(1=1,[SomeField]<100,True)
Criteria: <> False
You could also try
WHERE ((SomeField < 100 and 1=1) Or 1<>1)
In design view that would look like
Field: SomeField
Criteria (1): <100
Criteria(2):
Field: Expr1: 1=1
Criteria(1): True
Criteria(2): False
--
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
..
Duane Hookom said:
You can't place the operator inside the IIf(). You might be able to use:
< IIf(1=1,100, ...need something here...)
--
Duane Hookom
Microsoft Access MVP
If I have helped you, please help me by donating to UCP
http://www.access.hookom.net/UCP/Default.htm