Hi All,
how to send parameters with single quotes from vb6 to sql server2000 e.g
strFilter='wher e student_id like '21%' and '
sqlstr = "Cmsp_StudentAn alysis('" & Format(dtpFrom. Value, "mm/dd/yyyy 00:00:00") & "','" & Format(dtpTo.Va lue, "mm/dd/yyyy 23:59:59") & "','" & strFilter & "')"
connection.Exec ute sqlstr
while executing its giving error bcoz my parameter is having single quotes in it.
Plz help
how to send parameters with single quotes from vb6 to sql server2000 e.g
strFilter='wher e student_id like '21%' and '
sqlstr = "Cmsp_StudentAn alysis('" & Format(dtpFrom. Value, "mm/dd/yyyy 00:00:00") & "','" & Format(dtpTo.Va lue, "mm/dd/yyyy 23:59:59") & "','" & strFilter & "')"
connection.Exec ute sqlstr
while executing its giving error bcoz my parameter is having single quotes in it.
Plz help
Comment