Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to delete an ADODB recordset. Here is the code that I am using...
strSelect = "SELECT *" strFrom = "FROM tblVehicleDetails" strWhere = "WHERE ((tblVehicleDetails.[Unit Number])=" & lngUnitNumber & ")" strOrderBy = ";" Set rst = RunQuery(strSelect, strFrom, strWhere, strOrderBy, True) rst.Delete adAffectCurrent rst.UpdateBatch rst.Close Set rst = Nothing The runquery function works and returns a connected recordset. There is no error when the code runs but the records are not deleted. I have no trouble deleting the records manually in the databse. Any thoughts... TIA Jim Thomlinson |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
ADODB Recordset Function | Excel Programming | |||
ADODB Recordset problem | Excel Programming | |||
0 with ADODB Recordset | Excel Programming | |||
adodb.recordset with excel | Excel Programming | |||
ADODB Recordset | Excel Programming |