+ Reply to Thread
Results 1 to 5 of 5

When updating MS Access Query, tables connected in excel changes

  1. #1
    Forum Contributor
    Join Date
    08-18-2018
    Location
    Canada
    MS-Off Ver
    365
    Posts
    151

    When updating MS Access Query, tables connected in excel changes

    When updating MS Access Query, tables connected in excel changes. Usually the field that has been edited will go at the last column. How to deal with it? Thanks.
    Last edited by dummy777; 02-22-2019 at 11:08 AM. Reason: Solved

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

    Re: When updating MS Access Query, tables connected in excel changes

    I noticed that too. I think it's just the way MS-Query works: the changed column winds up in the last position regardless of where it is in the query select statement. You can move the column in excel manually and it will stay in place.

    Normally this is not an issue since MS-Query returns data to Excel Tables and you can used column header names for formulas, charts and pivot tables.
    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
    Forum Contributor
    Join Date
    08-18-2018
    Location
    Canada
    MS-Off Ver
    365
    Posts
    151

    Re: When updating MS Access Query, tables connected in excel changes

    Thank you for your response. Now I'm using index match functions as I have a template. However you have a great suggestion to used column header names for formula and to move the column in excel manually, I haven't thought of that. Also, does moving the column manually in excel will still stay in place even if I refresh the data?

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

    Re: When updating MS Access Query, tables connected in excel changes

    Yes, once you move the column, it will stay put even after a refresh. Any "helper columns" with formulas will always get moved to the end, but returned data will stay where you put it.

    Here is some more information on tables: http://www.utteraccess.com/wiki/Tables_in_Excel

    As for index / match you can try =INDEX(Table_Name, Match(whatever, Table_Name[Column_Name],0),Match(Other_Column_Name,Table_Name[#Headers],0))

    It doesn't matter where Other_Column_Name winds up.
    Last edited by dflak; 02-22-2019 at 09:46 AM.

  5. #5
    Forum Contributor
    Join Date
    08-18-2018
    Location
    Canada
    MS-Off Ver
    365
    Posts
    151

    Re: When updating MS Access Query, tables connected in excel changes

    Thank you very much!

+ 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. Dynamic link to Access query for updating Excel table
    By BanginMyHeadOnMyDesk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-22-2017, 11:45 AM
  2. Updating external connection to Access Query
    By morerockin in forum Excel General
    Replies: 1
    Last Post: 10-20-2015, 04:00 PM
  3. Replies: 1
    Last Post: 02-27-2015, 05:23 PM
  4. Linked Access query isn't updating
    By jas. in forum Excel General
    Replies: 4
    Last Post: 06-24-2014, 04:11 PM
  5. Problems with Excel link to Access query not updating
    By JayhawkPammy in forum Excel General
    Replies: 3
    Last Post: 12-06-2013, 10:05 AM
  6. Replies: 0
    Last Post: 08-11-2010, 12:07 PM
  7. Updating Access tables from Excel sheets
    By mlewit1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-27-2007, 04:26 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