My SQL query is really long so I tried to use _ to make them in separate lines. But I always got "compile error: Expected: end of statement" at "FROM" in the 3rd line. But I don't know where I got it wrong. Thanks everyone.
sqlString = _
"SELECT ISNULL([Yes Def],0), ISNULL(totalcount,0), ISNULL(([Yes Def]+0.0)/(totalcount+0.0) * 100,0) _
FROM [WAREHOUSE].[dbo].[SurveyQuestionDim] _
left outer join _
( _
SELECT SurveyQuestionKey, sum(case when Response = 'Yes, definitely' then 1 else 0 end) as [Yes Def], count(1) as totalcount _
FROM [WAREHOUSE].[dbo].[SurveyAnswerFact] _
WHERE ([providerkey] = 26387) _
AND ([SurveyQuestionKey] IN (470,477,479,481,483)) _
AND ([ResponseDateKey] BETWEEN 20140601 AND 20150531) _
GROUP BY SurveyQuestionKey ) t1 _
on t1.[SurveyQuestionKey] = [WAREHOUSE].[dbo].[SurveyQuestionDim].[SurveyQuestionKey] _
WHERE [WAREHOUSE].[dbo].[SurveyQuestionDim].[SurveyQuestionKey] IN (470,477,479,481,483) _
ORDER BY [WAREHOUSE].[dbo].[SurveyQuestionDim].[SurveyQuestionKey] "