I have problem in vb6 when I'm trying to insert parameters that are more than 10, 9 below are fine.
When I try from '@1' to '@9' its fine, the output will be strsql = '1st value'...'9th value', but when I with 10 parameter it outputs strsql = '@1'...'@10'
Set rsOR = New ADODB.Recordset
strSql = SQLParams("DB..sp_Insert '@1','@2','@3','@4','@5','@6','@7','@8','@9','@10'", cbPayor.Text, "COLLECTION", txtORCol.Text, dtCol.Value, UserID, CollectionType, txtAmountCol.Text, "PHP", dtColCash.Value, txtCheque.Text)
clsSession.Execute strSql, rsOR
No error using
'@1'...'@9'
FROM: strSql = SQLParams("DB..sp_Insert '@1',...,'@9'", cbPayor.Text, "COLLECTION")
OUTPUTS: strsql "DB..sp_Insert 'text here',.... ,'COLLECTION'
Error using
'@1'...'@10'
FROM: strSql = SQLParams("DB..sp_Insert '@1',...,'@10'", cbPayor.Text, "COLLECTION")
OUTPUTS: strsql "DB..sp_Insert '@1'...'@10'