Dim nret As Integer = 1000 Dim cmd As New SqlCommand("sp_CountSRStockforDups") cmd.CommandType = Data.CommandType.StoredProcedure ' OutPut Parameter cmd.Parameters.Add("@myRowCount", Data.SqlDbType.Int).Direction = Data.ParameterDirection.Output nret = CType(cmd.Parameters("@myRowCount").Value, Integer)
me.ExecuteNonQuery(cmd)
I get an error that says ExecuteNonQuery is not a member of Rodeo.CheckforDupsfrm
I know that it probably just in not the correct syntax because it is in the click of a button but I tried a couple of things and they did not work either.?