"SELECT COUNT(ID) As CatNumRec FROM Client WHERE Name= @abc"
@abc is the parameter name
HTH
Regards
Sukesh Hoogan
Bombay, India
[Enterprise Resource Planning & Business Intelligence]
odbcCmd = New OdbcCommand("SELECT Name FROM Tbl_Chd.AssmntCategory WHERE
(Name=?)",odbcConn)
1 do not use .Net anymore.
However some suggestions
b) Try
With odbcCmd
.Parameters("@Category").Value = Row.AssmntCategory
.Prepare()
.ExecuteNonQuery()
End With
c) Transfer the parameter coding to
ACategoryInput_ProcessInputRow procedure and see if the parameter value
does not get set to null.
d) Simplified code (not sure if it would work)
str= "SELECT whatever FROM SomeTable WHERE name=?"
odbccommand = New OdbcCommand(str, odbcconn)
odbccommand.Parameters.Add(New OdbcParameter)
odbccommand.Parameters.Item(0).Direction = ParameterDirection.Output
odbccommand.Parameters.Item(0).Size = somesize
odbccommand.Parameters.Item(0).Value = somevalue
odbccommand.Prepare()
odbccommand.ExecuteNonQuery()
If all this does not work, log your problem with ISC Support.
Regards
Try what I have suggested and let me know.
Regards
Sukesh
Sukesh Hoogan
Bombay, India
[Enterprise Resource Planning & Business Intelligence]