Connecting Tech Pros Worldwide Help | Site Map

The old "IIF"

  #1  
Old November 8th, 2007, 01:25 AM
Chesne
Guest
 
Posts: n/a
I am trying to return several value in and IF in a query statement.
The generic is as follows...

=IIf([Forms]![frmParticipantsMain]![NoOfParticipants]=10,Between 1 and
10,"")

Can anyone help with the "Between" part. I realise that it will not
work in the current form but is there someway I can return the records
between 1 and 10. TIA

  #2  
Old November 8th, 2007, 02:15 AM
Tom van Stiphout
Guest
 
Posts: n/a

re: The old "IIF"


On Wed, 07 Nov 2007 17:21:19 -0800, Chesne <ashfield@paradise.net.nz>
wrote:

You may want to check out the Choose function.
-Tom.

Quote:
>I am trying to return several value in and IF in a query statement.
>The generic is as follows...
>
>=IIf([Forms]![frmParticipantsMain]![NoOfParticipants]=10,Between 1 and
>10,"")
>
>Can anyone help with the "Between" part. I realise that it will not
>work in the current form but is there someway I can return the records
>between 1 and 10. TIA
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
"how to split a string in a random way" Pascal answers 12 December 16th, 2006 02:05 AM
CDec("") cj answers 4 September 15th, 2006 07:35 PM
Ambitious report idea......... "Favorites" Dennis Ruppert answers 9 November 13th, 2005 01:57 AM
Re-write of Allen Browne's "OnHand" function -- opinions? Don Leverton answers 1 November 13th, 2005 01:17 AM