I have an ADO recordset:
rs.source = "select * from myTable where myField = 'X'"
rs.open
I wish to delete ALL the records in this record set. I know I could loop through all them, but I'd rather do it in one fell swoop. I have an ADO book that mentions using the adAffectAll parameter to the .Delete method, but VB6 doesn't appear to support this value (only adAffectCurrent, adAffectGroup, and adAffectAllChapters). Ideas?
rs.source = "select * from myTable where myField = 'X'"
rs.open
I wish to delete ALL the records in this record set. I know I could loop through all them, but I'd rather do it in one fell swoop. I have an ADO book that mentions using the adAffectAll parameter to the .Delete method, but VB6 doesn't appear to support this value (only adAffectCurrent, adAffectGroup, and adAffectAllChapters). Ideas?