I have this query which seems to work unless I try to pass a null value in a parameter:
using (OleDbCommand com = new OleDbCommand(\"INSERT INTO [GROUP] ([Gr
Parameters with a .Value of null are not passed. At all.
.Value
null
You need to pass DBNull.Value instead to pass a semantic null. For example:
DBNull.Value
com.Parameters.Add("@p7", OleDbType.Char, 255).Value = ((object)values7[0]) ?? DBNull.Value;
(etc)
And yes: I agree that this is ridiculous