Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50163

import data from text file into Excel (ADO)

$
0
0
Hello everyone!

I would like to ask You for help. I want to import data from text file into sheet using SQL (ADO).

If You click black button in Excel file, data from text file will be imported. Problem appears when instead sql query "select * from abc.txt" I want to use following "Select * from abc.txt where a like 'Region*' " or "Select * from abc.txt where b>=2". I don't know why macro doesn't give any data based on these sql queries.

If You can help me I' d be delight :)

Regards.
Attached Files

Viewing all articles
Browse latest Browse all 50163

Trending Articles