Filtering ODBC data

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have created an ODBC link into an SQL server using the Import External Data
function in Excel 2003. The data is coming through without any problems
except that there is too much of it. Excel has a limit of 65,000 lines and
there is around 300,000 lines of data trying to get through, and the data I
want is at the bottom.

I want to put a filter on one of the columns in the table but don't know
how. I can see the Edit Query box but i've never really used SQL before.

Can anybody help?
 
Huwbert said:
I have created an ODBC link into an SQL server using the Import External Data
function in Excel 2003. The data is coming through without any problems
except that there is too much of it. Excel has a limit of 65,000 lines and
there is around 300,000 lines of data trying to get through, and the data I
want is at the bottom.

I want to put a filter on one of the columns in the table but don't know
how. I can see the Edit Query box but i've never really used SQL before.

Can anybody help?

What does the query look like? The usual way to limit the nuber of records
is to use the WHERE statement.

/Fredrik
 
In MSquery, there is an option in the menus to add a criteria. Use that
option.
 
You will need to tweak the SQL.

From the MS Query menu, View, Criteria.
A section should appear for you to filter the results.

This effectively generates the WHERE clause in your SQL.

So the SQL query will look something like
select client_name, client_address from client_table where client_name =
'Huwbert';

If you are feeling confident with SQL (or even if you're just curious) check
out my Query Editor Add-In - on my website.
It gives more control over these QueryTables - especially over Parameters.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top