0

I want to load a table data from SQL data bases by Excel ODBC, but the condition "where" i wanted to be dynamic - depended on excel spread cell "A1".

I made somethin like this: a picture link

select * from tabel where id = ?

But this doesn't work and i donno how to define "?" as A1 Cell

1 Answers1

0

Say you have the following query that works:

Query

If you add a WHERE CLAUSE like so:

Where Clause

Then press OK it should prompt you to refresh your query.

At that point you should get the following dialog, which you can use to set your parameter.

Reference Dialog Ref Dialog 2

Cody G
  • 8,368
  • 2
  • 35
  • 50