User-1199946673 posted
Is there a way I can see what is actually being passed when running the code below after adding the parameters?
It doesn't work for a simple reasin. OleDb Parameters are not recognized by their name, but by their position. which means you need to add them in the same order they (first) appear in the command. Althought you named the first parameter in the parametercollection
@main_id, you're passing the value delete_main_id to the first parameter, which is @delete_status. The name of the parameters is not important, it could be an empty string also
So to make this work, you need to change the order of the parameters:
cmd.Parameters.AddWithValue("the name is really not important", delete_str_error)
cmd.Parameters.AddWithValue("", delete_main_id)