Results 1 to 4 of 4
  1. #1
    4 Star Lounger
    Join Date
    May 2001
    Location
    Oxfordshire
    Posts
    456
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Iif... contains (2003 (SP2))

    Probably a daft little question, but I have a query that needs to return a value of T6 if a certain field 'contains' a K. I can do 'does not contain', but this one I've not used before & can't seem to find the answer.


    Here's what I've started with;
    Temper:Iif([ARTSEQ] 'contains' K, "T6","T4")

  2. #2
    Super Moderator
    Join Date
    Jun 2002
    Location
    Mt Macedon, Victoria, Australia
    Posts
    3,993
    Thanks
    1
    Thanked 45 Times in 44 Posts

    Re: Iif... contains (2003 (SP2))

    Try

    Temper:IIf(Instr(1,[ARTSEQ], "K")>0, "T6","T4")
    Regards
    John



  3. #3
    4 Star Lounger
    Join Date
    May 2001
    Location
    Oxfordshire
    Posts
    456
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Iif... contains (2003 (SP2))

    Cheers mate, that's done the trick.

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Iif... contains (2003 (SP2))

    Another possibility is
    <code>
    Temper: IIf([ARTSEQ] Like "*K*","T6","T4")</code>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •