RobHVB6Sql
Programmer
Hi, I'm hoping this is a simple one.
I am using a record set to grab one record from a working table. When I am done with the recordset ('adors2') I wish to delete the record from the table. (A bit like a to do list).
I recieve no error messages, but the record is not deleted.
Code:
'break connection to working table
adors2.Close
Set adors2 = Nothing
TheSQL = "DELETE FROM " & strWorkingTable & " " + _
"WHERE PersonID = " & lngOriginalPersonID
'execute the row deletion
Set adors = adoOdysseyConn.Execute(TheSQL)
'adoOdysseyConn.CommitTrans 'gives error
Rob Hasard
Data Manager -Genetic Services
(VB6 /SQL 7.0)
I am using a record set to grab one record from a working table. When I am done with the recordset ('adors2') I wish to delete the record from the table. (A bit like a to do list).
I recieve no error messages, but the record is not deleted.
Code:
'break connection to working table
adors2.Close
Set adors2 = Nothing
TheSQL = "DELETE FROM " & strWorkingTable & " " + _
"WHERE PersonID = " & lngOriginalPersonID
'execute the row deletion
Set adors = adoOdysseyConn.Execute(TheSQL)
'adoOdysseyConn.CommitTrans 'gives error
Rob Hasard
Data Manager -Genetic Services
(VB6 /SQL 7.0)