Results 1 to 6 of 6
  1. #1
    redhonda9834 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    9

    decode expression question

    Hello Everyone,

    I have a decode expression i need help with.



    decode(location_area, alternate_area, location_area, alternate_area) "Current_Location",

    Am I correct with this if statement?

    if location_area = alternate_area then
    current_location = location_area
    else
    current_location = alternate_area

  2. #2
    Perceptus's Avatar
    Perceptus is offline Expert
    Windows 7 64bit Access 2007
    Join Date
    Nov 2012
    Location
    Knoxville, Tennessee
    Posts
    659
    Is Decode a User Defined Function?

  3. #3
    redhonda9834 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    9
    I don't think its a user defined function. I think it is part of MSACCESS.

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870

  5. #5
    redhonda9834 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    9
    Crap... sorry, i forgot to mention this is a sql pass through query that is querying an oracle table.

    Does the if logic make sense?

  6. #6
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870

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

Similar Threads

  1. Question in Building an Expression
    By Dmosk319 in forum Queries
    Replies: 1
    Last Post: 03-27-2014, 07:33 AM
  2. Another simple expression question!
    By brownk in forum Queries
    Replies: 11
    Last Post: 05-25-2012, 12:04 PM
  3. Easy expression question
    By brownk in forum Access
    Replies: 1
    Last Post: 05-18-2012, 04:30 PM
  4. how to decode a string of numbers
    By cjlieber in forum Programming
    Replies: 4
    Last Post: 04-16-2012, 06:50 PM
  5. An Expression Builder Question
    By ddkolb in forum Reports
    Replies: 3
    Last Post: 06-03-2011, 04:51 PM

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