Private Sub CreateParameter(ByVal paramValue As Object, ByVal paramName As String)
Dim param As New SqlParameter
param.Value = paramValue
param.ParameterName = paramName
p.Add(param.ParameterName, param.Value)
In the above bit of code i get a NullReference Exception with in the last line. Any ideas why it is happening. I am declaring the param object. I have got no idea what's going on.
Dim param As New SqlParameter
param.Value = paramValue
param.ParameterName = paramName
p.Add(param.ParameterName, param.Value)
In the above bit of code i get a NullReference Exception with in the last line. Any ideas why it is happening. I am declaring the param object. I have got no idea what's going on.