Dim x as Integer
x = "10"
dim rsbookmark as long
dim rsdelete as new Adodb.Recordset
dim objcommand as new objcommand.Command
objcommand.ActiveConnection-strconnection 'my cnn string
objcommand.CommandText="delete from tbl_pos_summary where record_no='" & x & "'"
objcommand.CommandTimeout=600
set rsdelete=objcommand.Execute
x = x + 1
rsdelete.Bookmark = x
This should do the trick...
AndreRet
Industrious Poster
4,706 posts since Jan 2008
Reputation Points: 391
Solved Threads: 481
Skill Endorsements: 20
Hi,
Something like this :
dim i as long
i = rs.AbsolutePosition
rs.Delete
rs.ReQuery
If Not rs.EOF Then
rs.MoveFirst
rs.Move i
End If
Regards
Veena
QVeen72
Veteran Poster
1,017 posts since Nov 2006
Reputation Points: 118
Solved Threads: 164
Skill Endorsements: 5
Question Answered as of 11 Months Ago by
QVeen72
and
AndreRet