Share via

MS query parameter data from excel 2007 worksheet cell

Anonymous
2013-08-28T18:40:24+00:00

Hello all, I am looking to build a MS Query from the Query Wizard & ODBC.  I need it to use the values in a specific worksheet.  I am able to prompt myself using [ ], but not able to figure out how to make it pull from lets say Sheet1!F11. We are currently hard coding the values into the SQL statement.  I would like to build a new one (query) with the drop down providing the different criteria, and then another query to pull the search criteria from the drop down and use the "value" in the returned field from query 1.  Any help would be wonderful, I have a head ache from beating my head on the desk.

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Anonymous
    2013-08-29T22:51:00+00:00

    I'm talking about right-clicking the results of the query in the Excel worksheet.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2013-08-29T18:28:17+00:00

    In using MS Query, I am not able to right click on any table, or any other item for that matter.  I tried to build a new query and pulled in items from different tables and was not able to right click on any of them.  Where/what developer are you working with? I am new at this and it has been years since I have built larger sql statements.  If you know the sql statement which enables you to pull from the table a copy of the text in the statement would be a way to show it as well, if it shows up in the sql statement.

    Thank you very much!

    Doug

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2013-08-28T22:20:25+00:00

    Having got a querytable with a prompt on refresh, right-click the querytable > Table > Parameters > Get the value from the following cell: Sheet1!F11, and decide whether you want it to automatically refresh when the cell value changes.

    Was this answer helpful?

    0 comments No comments