Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2007
    Location
    Stalybridge, Manchester
    Posts
    273

    Unanswered: IIf Statement converted from Access to SQL Server

    I have this code below I use in Access, how can I change it to work through SQL?

    Code:
    IIf([FTE] <> 1,"PartTime","FullTime") AS FullTimePartTime

  2. #2
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    Code:
    CASE WHEN FTE <> 1 THEN 'PartTime' ELSE 'FullTime' END As [FullTimePartTime]
    George
    Home | Blog

  3. #3
    Join Date
    Apr 2007
    Location
    Stalybridge, Manchester
    Posts
    273
    Excellent thanks

Posting Permissions

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