+ Reply to Thread
Results 1 to 5 of 5

Microsoft Query

  1. #1
    Registered User
    Join Date
    11-17-2016
    Location
    South Africa
    MS-Off Ver
    2013
    Posts
    24

    Microsoft Query

    Good Day...

    I have created a Microsoft Query. It is looking at a SQL Table with several columns in it. The only two columns I use is the StockCode and UserField4. The StockCode is used as the criteria field.

    0.JPG

    1.JPG

    The Parameter is set to look at the value entered into cell A2 and, the query returns the value in the UserField4 column.

    3.JPG

    4.JPG

    On below picture it can be seen that the value is returned as well as the column heading.
    5.JPG
    Is it possible to only return the value and not the table heading called "UserField4" as well?
    Last edited by Colin Smitie; 05-09-2017 at 12:00 AM.

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Microsoft Query

    I don't think so. You are stuck with the column header. You could always hide the row or do the query on another page and then use something like B2='Hidden Query Sheet'!B2.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    11-17-2016
    Location
    South Africa
    MS-Off Ver
    2013
    Posts
    24

    Re: Microsoft Query

    Quote Originally Posted by dflak View Post
    I don't think so. You are stuck with the column header. You could always hide the row or do the query on another page and then use something like B2='Hidden Query Sheet'!B2.
    Thank you for the feedback. I will continue to research but, at this stage it does not seem possible. Your suggestion could however be a workaround. Will test it.

  4. #4
    Registered User
    Join Date
    05-10-2017
    Location
    PHILIPPINES
    MS-Off Ver
    2017
    Posts
    2

    Re: Microsoft Query

    try this tutorial site http://www.excel-easy.com/examples/microsoft-query.html
    i hope it will help you

  5. #5
    Registered User
    Join Date
    05-10-2017
    Location
    PHILIPPINES
    MS-Off Ver
    2017
    Posts
    2

    Re: Microsoft Query

    try this tutorial site http://www.excel-easy.com/examples/microsoft-query.html
    i hope it will help you

+ 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. Microsoft Query
    By johnf333 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-05-2013, 04:40 PM
  2. Microsoft Query in VBA
    By realniceguy5000 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-22-2011, 05:10 PM
  3. Microsoft Query
    By chris789 in forum Excel General
    Replies: 1
    Last Post: 09-22-2011, 08:47 AM
  4. Importing Access query into Excel:Microsoft Query
    By ge0rge in forum Excel General
    Replies: 3
    Last Post: 04-02-2009, 10:51 AM
  5. [SOLVED] Microsoft Query
    By Eddie O in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 04:05 AM
  6. Microsoft Query
    By VNCNTJ in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  7. [SOLVED] Microsoft Query
    By VNCNTJ in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-28-2005, 05:05 PM
  8. Microsoft Query rejects "nz" function in Access Query
    By Vaughan in forum Excel General
    Replies: 0
    Last Post: 05-04-2005, 01:06 PM

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