beetlebailey
Programmer
I have a simple SQL query within Excel VBA as follows:
Dim H as Integer
--I have successfully opened a connection here--
SQL="Select Hour1 from vpd where line=502"
Execute SQL
--I have successfully closed the connection here--
Now how do get the results of Hour1 assigned to a variable H
I Know the connection is working because I am sending data from the Excel sheet to SQL and it is making it there just fine. H = integer of 1 to 300. This seems simple enough but I am having a rough time of it.
Thanks in advance, Mark
Dim H as Integer
--I have successfully opened a connection here--
SQL="Select Hour1 from vpd where line=502"
Execute SQL
--I have successfully closed the connection here--
Now how do get the results of Hour1 assigned to a variable H
I Know the connection is working because I am sending data from the Excel sheet to SQL and it is making it there just fine. H = integer of 1 to 300. This seems simple enough but I am having a rough time of it.
Thanks in advance, Mark