Robert King
New Member
- Joined
- Mar 11, 2010
- Messages
- 3
I'm using:
Windows 7 x64, MS Excel 07, MySQL 5.1 (localhost), ODBC Connector 5.16
Current status
I finally managed to use get data from MySQL into Excel Sheet. That works fine.
Question
Can I use a cell as reference in the MySQL query?
1 - SELECT * FROM users WHERE (id > 10) // works
1 - SELECT * FROM users WHERE (id > ?) // prompts Textinput, ends in error after input
2 - SELECT * FROM users WHERE (id > $d$1 ) // throws error, invalid
Is a VBA Script needed? If so please describe fool-proof
*For me it looks like it's an easy and a common task.. I searched this forum and Google for a proper solution for hours now. I couldn't find a working solution :/
Windows 7 x64, MS Excel 07, MySQL 5.1 (localhost), ODBC Connector 5.16
Current status
I finally managed to use get data from MySQL into Excel Sheet. That works fine.
Question
Can I use a cell as reference in the MySQL query?
1 - SELECT * FROM users WHERE (id > 10) // works
1 - SELECT * FROM users WHERE (id > ?) // prompts Textinput, ends in error after input
2 - SELECT * FROM users WHERE (id > $d$1 ) // throws error, invalid
Is a VBA Script needed? If so please describe fool-proof
*For me it looks like it's an easy and a common task.. I searched this forum and Google for a proper solution for hours now. I couldn't find a working solution :/