|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I am fairly new at using Access. I am trying to write in an IF statement in the Criteria section on a query in design view. I want to have the TOTAL field to read -1 when the QTY is < 1 and I want it to read 1 when the QTY is > 0 (The QTY is grouped by sum) Can someone please help me?
Thanks, Steve |
|
#2
|
||||
|
||||
|
Example:
Code:
IIf(SUM(Qty) > 0, 1, -1) |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Programming question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|