+ Reply to Thread
Results 1 to 1 of 1

Excel 2007 : ms query problem - internal data

Hybrid View

  1. #1
    Registered User
    Join Date
    06-26-2011
    Location
    melbourne,australia
    MS-Off Ver
    Excel 2007
    Posts
    1

    Smile ms query problem - internal data

    If I use MS QUERY in Sheet2 to copy data from Sheet1 in the same xlsx file, data refresh works fine. If I alter data in Sheet1 and refresh, the changes appear in Sheet2. However when I save the file and re-open it, refresh no longer works giving "ODBC driver login fail" with can't open file (unknown). Same behaviour in Excel 2010 Vista and Windows 7.

    Any ideas please?

    Noel Adams (Excel novice).

    I have solved this problem (I think). Queries are held in the workbook and in external query files (if you choose to save the query). The queries held in the workbook are causing the error message. To overcome the problem: Create your query and save the query from the Query wizard giving it a meaningful name. Then cancel the query wizard (before letting the query run). Now choose, data, existing connections, and choose the query you just saved. Let it run and save the workbook. When you re-enter, refresh will work OK. Using this technique you may have several sheets with queries based on any prior sheet. The only trap I noticed is that "refresh all" does not necessarily work through the sheets in the sequence that you wish it to work. I can't find documentation on the default refresh sequence throught the sheets. I had deleted and renamed some sheets which may have altered the default sequence (whatever it is).
    Last edited by noeladams; 06-27-2011 at 11:08 AM. Reason: Problem Solved

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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