+ Reply to Thread
Results 1 to 4 of 4

How to put Condition in Query column?

  1. #1
    Forum Contributor
    Join Date
    11-03-2014
    Location
    Belgrade
    MS-Off Ver
    2010
    Posts
    348

    Question How to put Condition in Query column?

    Hi All,
    I want to a create column which is based on "Unit location" - Column.
    I put this condition: IIf(Left([unit location],3)="RAP",[RAP],[SCO]) but nothing happens and it always ask me to put some Value in one rectangle for RAP and SCO?

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,937

    Re: How to put Condition in Query column?

    Perhaps an explanation of what your tables look like and the data within them might be helpful as your expression appears to be properly syntaxed. Also, I don't know that this means.
    put some Value in one rectangle for RAP and SCO?
    Please explain this.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Contributor
    Join Date
    11-03-2014
    Location
    Belgrade
    MS-Off Ver
    2010
    Posts
    348

    Re: How to put Condition in Query column?

    I can't upload .accdb file. Don't know why.
    In attachment you can find Excel file so you can export it in Access and try with Query that I described.
    Attached Files Attached Files

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,937

    Re: How to put Condition in Query column?

    In your expression you are referencing two non-existent fields RAP and SCO. That is why you are getting the parameter request.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Excel Condition Query
    By Dnyan in forum Excel General
    Replies: 5
    Last Post: 08-21-2014, 07:54 AM
  2. [SOLVED] Formula Query; If 2 out of 3 conditions plus further condition, Yes or No.
    By Phrick in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-13-2014, 01:18 PM
  3. how to use if condition for more than one query
    By genetist in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-09-2013, 05:47 PM
  4. [SOLVED] sql query condition from cell value - how?
    By azhanurul in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-10-2012, 07:33 AM
  5. How to Query with Date Selection Condition
    By antoni in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-26-2011, 05:22 AM
  6. Refreshing only certain cells of a web query based on a condition
    By sjfit4 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-15-2010, 06:52 AM
  7. SUMPRODUCT, Dual Condition, Expense Type Query
    By heatwave in forum Excel General
    Replies: 2
    Last Post: 07-08-2010, 01:07 AM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1