H
Henry
I tried 3 ways to delete a record with a corupted memo field:
DoCmd.RunSQL "delete from
where MNAME ='" & strMNAME & "'"
returns err = 3709
Dim db As DAO.Database
Set db = CurrentDb()
db.Execute "DELETE FROM tablewhere MNAME ='" & strMNAME & "'",
dbFailOnError
db.Close
Set db = Nothing
returns err = 3709
Set conn = CurrentProject.Connection
Set rs = New ADODB.Recordset
rs.Open "table", conn, adOpenDynamic, adLockOptimistic
rs.Find "MNAME = '" & strMNAME & "'"
If Not rs.EOF Then rs.Delete
rs.Close
conn.Close
returns err = -2147217887
even manually deleting doesnt work. I have to copy the table and delete the
corupted one.
anything more brutal I could try in my code ?
henry
DoCmd.RunSQL "delete from
returns err = 3709
Dim db As DAO.Database
Set db = CurrentDb()
db.Execute "DELETE FROM tablewhere MNAME ='" & strMNAME & "'",
dbFailOnError
db.Close
Set db = Nothing
returns err = 3709
Set conn = CurrentProject.Connection
Set rs = New ADODB.Recordset
rs.Open "table", conn, adOpenDynamic, adLockOptimistic
rs.Find "MNAME = '" & strMNAME & "'"
If Not rs.EOF Then rs.Delete
rs.Close
conn.Close
returns err = -2147217887
even manually deleting doesnt work. I have to copy the table and delete the
corupted one.
anything more brutal I could try in my code ?
henry