Error is :
An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in system.data.dll

Additional information: System error.

for the Code :
Public Function insertresult(ByVal txtsearch As String) As Boolean
Dim cmd As New SqlCommand("InsResult", m_cn)
cmd.CommandType = CommandType.StoredProcedure
cmd.Parameters.Add("@Word", txtsearch)
cmd.ExecuteNonQuery()
End Function

Error :
An unhandled exception of type 'System.ArgumentException' occurred in microsoft.visualbasic.dll

Additional information: Argument 'Prompt' cannot be converted to type 'String'.


Public Function insertresult(ByVal txtsearch As String) As Boolean
Dim cmd As New SqlCommand("InsResult", m_cn)
cmd.CommandType = CommandType.StoredProcedure
cmd.Parameters.Add("@Word", txtsearch)
Try
cmd.ExecuteNonQuery()
Catch e As Exception
MsgBox(e)
End Try
End Function
InsResult Procedure:
CREATE PROCEDURE dbo.InsResult
(
@Word VarChar(30)
)
AS
SET NOCOUNT ON
Declare @wordid Integer
Declare @urlid Integer
Declare @url varchar(150)
Declare @title varchar(250)
Declare @kc Integer
set @wordid =( Select ID from tblKeywords
where Keyword = @Word)
set @kc =( Select KeywordCount from tblKeywords
where Keyword = @Word)
set @urlid = (select URLID from tblkeywordurl
where KeywordID=@wordid)
set @url = (select URL from tblURLs
where ID=@urlid)
set @title = (select TITLE from tblURLs
where ID=@urlid)
Insert Into tblResults(URLID,TITLE,URL,KeyCount) values (@urlid,@title,@url,@kc)
RETURN
GO


Plz suggest me the solution or correct code