Dr Peter Klomp
New member
- Local time
- Tomorrow, 05:57
- Joined
- Jun 23, 2020
- Messages
- 11
Hi Team,
This is my first post, so bear with me if I am not following protocol.
I am trying to write an MS Access query (not VBA) whereby, in the criteria box, I want records returned according to certain criteria.
The table is debtors and one field is InvoiceNow which is a true/false field. If any record has been checked true (which I think is -1), I want the query to run with the criteria being true. If no records have been checked true (0), then I want query criteria to be false.
So far I have this in the criteria box of the query:
Status: IIf(Sum(InvoiceNow) < 0,-1, 0)
But, you guessed it MS Access tells me the expression is invalid.
Can anyone help, please? Thank you in advance
Regards
Peter
This is my first post, so bear with me if I am not following protocol.
I am trying to write an MS Access query (not VBA) whereby, in the criteria box, I want records returned according to certain criteria.
The table is debtors and one field is InvoiceNow which is a true/false field. If any record has been checked true (which I think is -1), I want the query to run with the criteria being true. If no records have been checked true (0), then I want query criteria to be false.
So far I have this in the criteria box of the query:
Status: IIf(Sum(InvoiceNow) < 0,-1, 0)
But, you guessed it MS Access tells me the expression is invalid.
Can anyone help, please? Thank you in advance
Regards
Peter