G
Guest
Can some one look at this and let me know why it isnot working??
The filed, ([sweet_spot_analysis].[CurrentZone], is a field in the query
that is prompted. Based on this value, I wanted the following to occur (see
below)
iif([sweet_spot_analysis].[CurrentZone] = ‘zonef’,
iif([sweet_spot_analysis].[8WkIC] between [ZoneMinMAx].[zoneAmin] and
[ZoneMinMAx].[zoneAmax], “MoveToZoneAâ€, iif([sweet_spot_analysis].[8WkIC]
between [ZoneMinMAx].[zoneBmin] and [ZoneMinMAx].[zoneBmax], “MoveToZoneBâ€,
iif([sweet_spot_analysis].[8WkIC] between [ZoneMinMAx].[zoneCmin] and
[ZoneMinMAx].[zoneCmax], “MoveToZoneCâ€, iif([sweet_spot_analysis].[8WkIC]
between [ZoneMinMAx].[zoneJmin] and [ZoneMinMAx].[zoneJmax], “MoveToZoneJâ€,
“continuecodeâ€))))) as ZoneEnd
Thanks
The filed, ([sweet_spot_analysis].[CurrentZone], is a field in the query
that is prompted. Based on this value, I wanted the following to occur (see
below)
iif([sweet_spot_analysis].[CurrentZone] = ‘zonef’,
iif([sweet_spot_analysis].[8WkIC] between [ZoneMinMAx].[zoneAmin] and
[ZoneMinMAx].[zoneAmax], “MoveToZoneAâ€, iif([sweet_spot_analysis].[8WkIC]
between [ZoneMinMAx].[zoneBmin] and [ZoneMinMAx].[zoneBmax], “MoveToZoneBâ€,
iif([sweet_spot_analysis].[8WkIC] between [ZoneMinMAx].[zoneCmin] and
[ZoneMinMAx].[zoneCmax], “MoveToZoneCâ€, iif([sweet_spot_analysis].[8WkIC]
between [ZoneMinMAx].[zoneJmin] and [ZoneMinMAx].[zoneJmax], “MoveToZoneJâ€,
“continuecodeâ€))))) as ZoneEnd
Thanks