I'm using MySQL and EXCEL(VBA) How can I pass an sql query value into a variable?
I have a variable Dim-ed:
Dim sqlVar As Variant
It's variant because I'm not sure which type I should use. I have set the sql query to the variable like this:
sqlVar = "SELECT datum FROM arfolyam ORDER BY datum ASC LIMIT 1 "
But like this, it stores the sql query, not the value of the query!
Any ideas?