Hi,
As LowFatSpread said, most likley you have a recordset object with more then one table in it. ADO doesn't know what table or record to delete, since it cascade's down the query.
For the most effiecient way to empty a table, as I read you are trying to do, is to create an sql query that does that. For example, we have a table named "Customers".
Now, to create a SQL query that empty's that table, simple use the following:
DELETE
FROM Customers
Execute that on either a command object, or on your connection object. Delete query's can be given a where clause, that causes a certain amount of records to be deleted where the field matches the criteria you give it. Just like a select does.
Hope this helps you somewhat.
Grtz.©
D.
Main Topics
Browse All Topics





by: LowfatspreadPosted on 2003-11-29 at 03:48:30ID: 9842072
Hi Jangomez74,
whats your recordset based on?
how many actual tables are involved...
Cheers!