Results 1 to 5 of 5
  1. #1
    nguyenak is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2012
    Posts
    23

    How to Add a Custom Column on the result query

    Hi,



    Not sure if this is possible. I wanted to add an additional column on the result of a query.

    For example,

    Table1

    Page
    Visits

    When I do a filter for Page ( like 'printers'), I would like the result table to be

    Page
    ColumnA: Page (filtered for printers)
    ColumnB: Visit
    ColumnC: Printers

    is it possible to do this?

  2. #2
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    When you filter your query on Page for "printers," what value do you want in the Column C: Printers? And if it is already filtered, wouldn't this just be redundant information of what is in column A?

  3. #3
    nguyenak is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2012
    Posts
    23
    in column C, I want it to display Printers.

    The reason is that I will have 3 seperate queries for each division. At the end, I will merge the tables and create a pivot report

  4. #4
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    In a new column, type Printers:IIF([Page]="Printers","Printers",Null)

  5. #5
    nguyenak is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2012
    Posts
    23
    perfecto....thank you

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

Similar Threads

  1. Replies: 8
    Last Post: 05-16-2012, 09:30 AM
  2. Replies: 3
    Last Post: 09-28-2011, 04:29 PM
  3. Custom Date in Query
    By frdebelo in forum Queries
    Replies: 4
    Last Post: 09-22-2011, 07:01 AM
  4. Replies: 2
    Last Post: 05-27-2010, 10:31 AM
  5. Replies: 7
    Last Post: 04-27-2010, 02:47 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