Results 1 to 4 of 4
  1. #1
    esx_raptor is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2010
    Posts
    2

    Wildcards?!

    Hey sup guys check this out:

    iif(condition,then,else)

    Alright, I'm cool with the condition, however, when I try to use the "Like *" wildcard in the "then" part it won't work (same with else).

    Is there another way to do this?

    kthx

  2. #2
    Rainlover's Avatar
    Rainlover is offline Expert
    Windows XP Access 2003
    Join Date
    Nov 2009
    Location
    Queensland Australia
    Posts
    691
    The >Then< and the >Else< require a Single Result or perhaps a Function.

    What are you trying to do with the wild card.

  3. #3
    esx_raptor is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2010
    Posts
    2
    I have a drop-down list in an application in which the user can pick or write a name from that list. If he chooses a name and presses a button, all the instances of that name in a table will be displayed. However, if he doesn't put any name in that field (the empty string ""), it should display all the names in the table. Thus:

    iif (name()="", like *, name())

    But that is not working, like I mentioned.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums