So I have:
Excel 15.
An excel sheet, linked to a Postgres DB
I am pulling data successfully into the XLS, via ODBC
Objective
Pass in ONE parameter (UserName) and use that in the query
The way I use the queries is
- Data -> New DB Query
- in MS Query, paste in my SQL (which works)
Next is the Import Data screen, which lets me put the data into the sheet
That all works.
How do I pass in a parameter?
In MS Support "Customize a parameter query"
The article indicates a parameter can be passed in, but I dont understand how.
Ideally, I like to have a cell with my input parameter to be used in the SQL
(I can pick that up via VBA if needed. My VBA is decent)
Thanks
Bookmarks