InstructionWhich7142
Registered User.
- Local time
- Today, 17:47
- Joined
- Feb 24, 2010
- Messages
- 199
I try to set the criteria of this field:
To be this statement
This has the expected result when I enter it in the SQL view and Run the query, however when I save, close and reopen the satement changes to this which doesn't work:
It returns results that shouldn't be there and aren't in the version I enter in SQL view
Code:
CurrentShipDate: (IIf([sndplan].[shipdate]>1,IIf([sndplan].[shipdate]>[sndplan].[cldate] Or [sndplan].[shipearly],[sndplan].[shipdate],[sndplan].[cldate]),Null))
To be this statement
Code:
<>IIf([sndplanvactual].[shipdate]>1,IIf([sndplanvactual].[shipdate]>[sndplanvactual].[cldate] Or [sndplanvactual].[shipearly],[sndplanvactual].[shipdate],[sndplanvactual].[cldate]),Null)
This has the expected result when I enter it in the SQL view and Run the query, however when I save, close and reopen the satement changes to this which doesn't work:
Code:
<>(IIf([sndplanvactual].[shipdate]>1,IIf([sndplanvactual].[shipdate]>[sndplanvactual].[cldate] Or ((IIf([sndplan].[shipdate]>1,IIf([sndplan].[shipdate]>[sndplan].[cldate] Or [sndplan].[shipearly],[sndplan].[shipdate],[sndplan].[cldate]),Null)))=[sndplanvactual].[shipearly],[sndplanvactual].[shipdate],[sndplanvactual].[cldate]),Null))
It returns results that shouldn't be there and aren't in the version I enter in SQL view