How to add parameters to an external data query in Excel which can't be displayed graphically?

前端 未结 4 1159
被撕碎了的回忆
被撕碎了的回忆 2020-11-28 23:43

I often use MS Excel\'s Get External Data to create simple reports - running queries against databases and displaying nicely in Excel. Excel\'s great features l

4条回答
  •  遥遥无期
    2020-11-29 00:35

    Easy Workaround (no VBA required)

    1. Right Click Table, expand "Table" context manu, select "External Data Properties"
    2. Click button "Connection Properties" (labelled in tooltip only)
    3. Go-to Tab "Definition"

    From here, edit the SQL directly by adding '?' wherever you want a parameter. Works the same way as before except you don't get nagged.

提交回复
热议问题