Delete all rows then append

Ste4en

Registered User.
Local time
Today, 17:01
Joined
Sep 19, 2001
Messages
142
I need to append some rows into a table, before I add these rows i need to delete all of the old rows.

I can't use a Make Table query because I am updating a linked table in another database.

So how can I (automatically) delete all rows in that table before or during the append process.

Thanks
Steve
 
Create a delete query and just select the asterisk and put in no criteria, or use:

Code:
Dim strSQL as String

strSQL = DELETE * FROM YourTableName
DoCmd.RunSQL strSQL
 
thanks worked fine.
 

Users who are viewing this thread

Back
Top Bottom