F
Frank_T_L
Hi
I am looking for a way to send a SQL qyuery to MS SQL Server and get the
result into a variable in Excel VBA.
The SQL looks like this:
SELECT Database.Project.Name
FROM Database.Project
WHERE Database.Project.ProjecrNo=1000
Then I want to use the result of the query (the project name) in some string
manipulation before I return it to the Excel woorkbook. So therefore I want
it returned to the variable strPrName.
I have been looking into some Excel VBA functions, but they all seems to
return the value to a range in the Excel workbook. Any sugestions?
I am looking for a way to send a SQL qyuery to MS SQL Server and get the
result into a variable in Excel VBA.
The SQL looks like this:
SELECT Database.Project.Name
FROM Database.Project
WHERE Database.Project.ProjecrNo=1000
Then I want to use the result of the query (the project name) in some string
manipulation before I return it to the Excel woorkbook. So therefore I want
it returned to the variable strPrName.
I have been looking into some Excel VBA functions, but they all seems to
return the value to a range in the Excel workbook. Any sugestions?