I have a COM Add-in. And I was trying to use SessonClass.OpenRecordSet to save data to database.
I wrote the following code:
Dim rs As New ADODB.Recordset ... rs = MySession.OpenRecordSet("sprc_SetService(50,'ttt')", True), ... but it comes with "Incorrect syntax near 50". Any one knows why?
If I exec sprc_SetService(50,'ttt') direcly in SQL Query, it works totally fine.
Thanks Leanne