"OR" IN QUERY
From: Bill Gargan (BGargan_at_EasternSlopeInn.com)
Date: 05/10/04
- Next message: Jim Carlock: "Re: merge multiple databases"
- Previous message: Mark: "falsepart of IIF is a wildcard in criteria expression"
- Next in thread: Graeme Richardson: "Re: "OR" IN QUERY"
- Reply: Graeme Richardson: "Re: "OR" IN QUERY"
- Reply: Lynn Trapp: "Re: "OR" IN QUERY"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 10 May 2004 12:44:04 -0700
I have a query that works -- and need to change one field
in it.
The one that works is:
PRICE: IIf([INVOICE DETAIL]![ITEM TYPE]="MATERIALS",ROUND
([QUANTITY]*[RATE]*1.265,2),ROUND([QUANTITY]*[RATE],2))
It fails when I change it to read:
PRICE: IIf(or([INVOICE DETAIL]![ITEM TYPE]="MATERIALS",
[INVOICE DETAIL]![ITEM TYPE]="SUBCONTRACT"),ROUND
([QUANTITY]*[RATE]*1.265,2),ROUND([QUANTITY]*[RATE],2))
The error message I get when I try to save the query is:
"The expression you entered contains invalid syntax. You
may have entered a comma without a preceding value or
identifier."
Any ideas why this fails.
Thanks,
Bill Gargan
- Next message: Jim Carlock: "Re: merge multiple databases"
- Previous message: Mark: "falsepart of IIF is a wildcard in criteria expression"
- Next in thread: Graeme Richardson: "Re: "OR" IN QUERY"
- Reply: Graeme Richardson: "Re: "OR" IN QUERY"
- Reply: Lynn Trapp: "Re: "OR" IN QUERY"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|