I have a form and stored procedure that inserts the data from the form. It works fine except that if a field isn\'t filled in it doesn\'t insert a NULL into SQL
NULL
You need to use DBNull.Value
If String.IsNullOrEmpty(pd_first_name.Text.ToString().Trim) = true Then frmFirstName = DBNull.Value Else frmFirstName = pd_first_name.Text End If