+ Reply to Thread
Results 1 to 4 of 4

Passing Excel Parameter to ODBC mysql query

  1. #1
    Registered User
    Join Date
    12-08-2011
    Location
    CO
    MS-Off Ver
    Excel 2010
    Posts
    5

    Passing Excel Parameter to ODBC mysql query

    Hi,
    I've been trying to pass a parameter (cell.value) to a mysql query so I can update the query via a cell input and not have to use the command line.

    Here is what I have:
    Select
    domain As Domain, Date(time_period) As Date
    From mytbl
    Where domain in (Select * From [tblSpend$g2])

    tblSpend$g2 is my worksheet name and the cell I want the parameter to pass from.

    Windows7
    MySQL 5.1.11

    Thanks!

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

    Re: Passing Excel Parameter to ODBC mysql query

    I have not used MySQL, but you may be able to glean something from this link where it shows how to do the same with an Access db.

    http://datapigtechnologies.com/blog/...ry-from-excel/

    I have used this method successfully.

    Alan
    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
    12-08-2011
    Location
    CO
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Passing Excel Parameter to ODBC mysql query

    Thanks Alan. This seems to be a great start.

  4. #4
    Registered User
    Join Date
    12-15-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Passing Excel Parameter to ODBC mysql query

    Hey bearclaw, did you resolve this issue i am requiring a similar solution?

+ 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