Hi!!
How do i from vb 2005 add a new record to a access DB and then save it?
(Sry my enlgish)
Printable View
Hi!!
How do i from vb 2005 add a new record to a access DB and then save it?
(Sry my enlgish)
I think, You wanna to add a record in ACCESS Table using VB2005..If it is so,,
then build a recordset..
then add a new row to recordset usingVB Code:
set rst=db.openrecordset(sql statement)
and then fill out all the required info in the new row likeVB Code:
rst.addnew
and then update the new record using update method..ex:VB Code:
rst(0)=xyz
VB Code:
rst.update
** This is what I used to do in VB6.0,I dont see VB2005 till now and so I dont know the correct syntaxes of it..If any one responded with correct syntaxes of 2005 then it will be greatly helpful 4 both of us..
All the best...
vb 2005 = .net (I think) - post in that forum.. The may have some simple tutorials to follow too.
Thks guys!!