|
-
Apr 28th, 2001, 01:59 AM
#1
Thread Starter
Lively Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|