+ Reply to Thread
Results 1 to 2 of 2

Passing variable values (complete specifically path of an MDB) inside a SQL query in

  1. #1
    Registered User
    Join Date
    06-01-2011
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    1

    Exclamation Passing variable values (complete specifically path of an MDB) inside a SQL query in

    Hi Folks,

    There's this application we are working on here, written completely in excel and uses Pivot tables. Now, we have a particular pivot table here that gets the data from a SQL query (using Microsoft Query I think).

    Here's what I do to get to the query:
    Right click on a cell in the Pivot sheet and Go to the Pivit Table Wizard. Subsequently, follow all the steps till I get to the SQL query.

    Here's the query I get

    Please Login or Register  to view this content.
    Now, the highlighted RED section is a path to an MDB file placed within the same folder. We need to remove all hardcoding references to this path so that in case the entire folder gets moved to some other place (say F:\topstat\xls-ro\....), it does not break.

    The MDB file and the Pivot sheet will ALWAYS remain in the same folder structure.

    Any help or inputs on this would be appreciated.

    Thanks

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Passing variable values (complete specifically path of an MDB) inside a SQL query

    Your post does not comply with Rule 8 of our Forum RULES. Cross-posting is when you post the same question in other forums on the web. You'll find people are disinclined to respond to cross-posts because they may be wasting their time solving a problem that has been solved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser)to the cross-post. Expect cross-posts without a link to be closed a message will be posted by the moderator explaining why. We are here to help so help us help you!

    Read this to understand why we ask you to do this
    Remember what the dormouse said
    Feed your head

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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