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

4

1 Answer 1

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

Sign up to request clarification or add additional context in comments.

1 Comment

yeee i didn't get the third window ya showed :( but nevermind, i coded it in VBA

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.