Delete selected rows c# pliz help ;/

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Paczek
    New Member
    • Aug 2007
    • 1

    #1

    Delete selected rows c# pliz help ;/

    Hi,

    My name is Łukasz I from Poland;] Need Your's help

    This is code in C# :

    private void button4_Click(o bject sender, System.EventArg s e)
    {
    string strConn = @"Provider=Micr osoft.Jet.OLEDB .4.0;Data Source=c:\\Mobi leBook.mdb";

    string strSQL = "DELETE FROM Dane_Podstawowe Where (Imie=?)";
    OleDbConnection conn = new OleDbConnection (strConn);
    conn.Open();

    OleDbCommand cmd = new OleDbCommand();

    cmd = new OleDbCommand(st rSQL,conn );
    }

    I want to delete selcted rows i Data Access! I child in C# and my english is wrong!
    Can You help me?

    Tank You very much!!!
Working...