Results 1 to 2 of 2

Thread: sqlserver

  1. #1

    Thread Starter
    Lively Member moonguy's Avatar
    Join Date
    Apr 2001
    Location
    pune(india)
    Posts
    67

    sqlserver

    plz help,
    i ve connected through adodc to an sqlserver database, whenever i am at the first record of an empty table and say addnew,it adds one empty row in the table by itself along with the record specfied by me.
    maybe its something with the EOFaction prop but what is it i dont know.this is the straightforward code;

    Private Sub Command1_Click()
    Text1.Text = ""
    Text2.Text = ""
    End Sub

    Private Sub Command2_Click()
    Adodc1.Recordset.AddNew
    Adodc1.Recordset.Fields("nm") = Text1.Text
    Adodc1.Recordset.Fields("marks") = Text2.Text
    Adodc1.Recordset.Update
    End Sub
    Vishal Mungi
    [email protected]
    www.geocities.com/vishalmungi

    VB,ASP,C++,Java,Oracle,MAX,photoshop,XML..,


    ~~~~
    \ - - /

  2. #2

    Thread Starter
    Lively Member moonguy's Avatar
    Join Date
    Apr 2001
    Location
    pune(india)
    Posts
    67
    never mind i got it , i dont have to empty the textboxes again .
    Vishal Mungi
    [email protected]
    www.geocities.com/vishalmungi

    VB,ASP,C++,Java,Oracle,MAX,photoshop,XML..,


    ~~~~
    \ - - /

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width