Geoff Codd
Registered User.
- Local time
- Today, 17:56
- Joined
- Mar 6, 2002
- Messages
- 190
I have the following criteria in a query but it won't work
IIf([Forms]![Report Criteria Selection]![Sub-Group_Selection]="Gas (All Sites) & Water (All Sites)",Like "Direct Reading - Gas*" Or Like "Direct Reading - Water*",Like [Forms]![Report Criteria Selection]![Sub-Group_Selection])
When I seperate the criteria and test
Like "Direct Reading - Gas*" Or Like "Direct Reading - Water*"
And
Like [Forms]![Report Criteria Selection]![Sub-Group_Selection]
They both work but as soon as I include then in an IIF statement it won't.
Any ideas anyone
Thanks
Geoff
IIf([Forms]![Report Criteria Selection]![Sub-Group_Selection]="Gas (All Sites) & Water (All Sites)",Like "Direct Reading - Gas*" Or Like "Direct Reading - Water*",Like [Forms]![Report Criteria Selection]![Sub-Group_Selection])
When I seperate the criteria and test
Like "Direct Reading - Gas*" Or Like "Direct Reading - Water*"
And
Like [Forms]![Report Criteria Selection]![Sub-Group_Selection]
They both work but as soon as I include then in an IIF statement it won't.
Any ideas anyone
Thanks
Geoff