+ Reply to Thread
Results 1 to 8 of 8

Importing query to Excel returns all data not my parameters

  1. #1
    Registered User
    Join Date
    08-01-2017
    Location
    Florida
    MS-Off Ver
    2013
    Posts
    54

    Importing query to Excel returns all data not my parameters

    Hi,

    I have built and excel workbook that has access queries loaded on to different tabs. The problem Im having with this is when I import my query to excel it returns all the data in the database. Any ideas how I can fix this and make it return only the data for this query? I have double checked access and the query is pulling correct when I look in access. Any help would be greatly appreciated.


    Thank you,

    Brett B

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

    Re: Importing query to Excel returns all data not my parameters

    Any reason that you don't export the queries directly from Access? I find this generally to be error free.

    How are you pulling the data? VBA?
    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
    Registered User
    Join Date
    08-01-2017
    Location
    Florida
    MS-Off Ver
    2013
    Posts
    54

    Re: Importing query to Excel returns all data not my parameters

    I am using the data tab in excel to get data from access.

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Importing query to Excel returns all data not my parameters

    maybe use PowerQuery and select data what you want to show

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

    Re: Importing query to Excel returns all data not my parameters

    Are there any Access functions in your query that are not compatible with Excel, ie. NZ?

  6. #6
    Registered User
    Join Date
    08-01-2017
    Location
    Florida
    MS-Off Ver
    2013
    Posts
    54

    Re: Importing query to Excel returns all data not my parameters

    Quote Originally Posted by alansidman View Post
    Are there any Access functions in your query that are not compatible with Excel, ie. NZ?
    Where can I find a list of the functions that are not compatible with MS excel?

  7. #7
    Registered User
    Join Date
    08-01-2017
    Location
    Florida
    MS-Off Ver
    2013
    Posts
    54

    Re: Importing query to Excel returns all data not my parameters

    In the query design I set my parameters using these three functions Not Like, Like, and < Date (). Would any of these cause my data to import everything instead of the criteria listed?

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

    Re: Importing query to Excel returns all data not my parameters

    What is the SQL statement in Access that you are trying to connect to?

+ 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. SQL Query loading in MS Query but not importing data to excel
    By sharper1989 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-20-2016, 09:52 AM
  2. [SOLVED] SQL Query loading in MS Query but not importing data to excel
    By sharper1989 in forum Access Tables & Databases
    Replies: 0
    Last Post: 05-19-2016, 09:31 AM
  3. Excel Web Query returns no data??
    By mattr11992 in forum Excel General
    Replies: 0
    Last Post: 02-28-2014, 06:06 PM
  4. Importing Data from Access into Excel using microsoft query
    By JessicaW in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-04-2013, 02:51 PM
  5. Importing query from Access, data changes in Excel!
    By bromero in forum Excel General
    Replies: 0
    Last Post: 02-17-2010, 01:15 PM
  6. Microsoft Query returns truncated data to Excel
    By memeli1 in forum Excel General
    Replies: 1
    Last Post: 05-21-2007, 02:57 AM
  7. Importing data to Excel using MS Query
    By John in forum Excel General
    Replies: 1
    Last Post: 11-17-2005, 02:25 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