Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21238

Recordset - Add new

$
0
0
Hey,

I have three textboxes (text1, text2, text3), and i want to the number in the text box to go into my DB(OrderNo,PartNo,Qty).
I have set up the connection to my DB and it's working fine.

This is my code:

Private Sub cmdAddNew_Click()
'Add new record
With rs
.AddNew
.Fields (0)
.Fields (1)
.Fields (2)
.Update
End With
End Sub

Thanks
Oonagh

Viewing all articles
Browse latest Browse all 21238

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>