S
Shapper
Hello,
I am adding a parameter, with only one code line, when I set a
connection to an Access database:
With dbCommand.Parameters
.Add(New System.Data.OleDb.OleDbParameter("@title",
OleDbType.VarWChar).Value = "Title Text")
End With
I get the error: "The OleDbParameterCollection only accepts non-null
OleDbParameter type objects, not Boolean objects."
Why is that?
I have been searching for the solution in Google and I can't see why
this is not working.
Thanks,
Miguel
I am adding a parameter, with only one code line, when I set a
connection to an Access database:
With dbCommand.Parameters
.Add(New System.Data.OleDb.OleDbParameter("@title",
OleDbType.VarWChar).Value = "Title Text")
End With
I get the error: "The OleDbParameterCollection only accepts non-null
OleDbParameter type objects, not Boolean objects."
Why is that?
I have been searching for the solution in Google and I can't see why
this is not working.
Thanks,
Miguel