C# .NET - INSERT Statement with parameter using TableAdapter

  • Hello,

    I have a Windows Form and am trying to pass a value as part of my INSERT statement. I have one field that requires a new value which is entered in the dataset. Then when clicking update, the row writes to the database.

    Here is my line of code:

    this.ScriptParametersTableAdapter.Insert("abc", txtScriptType, txtConfigField, txtActive, txtDateNow);

    The first data inserted is "abc". I would like to change this to be the value entered into the dataset. Is this possible?

Viewing 0 posts

You must be logged in to reply to this topic. Login to reply