PC Review


Reply
Thread Tools Rate Thread

delete all records but keep table

 
 
=?Utf-8?B?RWRkeQ==?=
Guest
Posts: n/a
 
      23rd Mar 2007
I need to delete all records in a table but keeping the table. This is to
allow new records to be push into the table by my IT admin (he is not
familiar with Access). Can't do appending data as past weeks data may
change. Any suggestions?
 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      23rd Mar 2007
Create a macro with the RunSQL action.

The statement to delete all records from Table1 is:
DELETE FROM Table1;

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Eddy" <(E-Mail Removed)> wrote in message
news:CE8A289F-4D76-466A-AAD7-(E-Mail Removed)...
>I need to delete all records in a table but keeping the table. This is to
> allow new records to be push into the table by my IT admin (he is not
> familiar with Access). Can't do appending data as past weeks data may
> change. Any suggestions?

 
Reply With Quote
 
Joseph Meehan
Guest
Posts: n/a
 
      23rd Mar 2007
Eddy wrote:
> I need to delete all records in a table but keeping the table. This
> is to allow new records to be push into the table by my IT admin (he
> is not familiar with Access). Can't do appending data as past weeks
> data may change. Any suggestions?


Use a delete query.


--
Joseph Meehan

Dia 's Muire duit



 
Reply With Quote
 
=?Utf-8?B?RWRkeQ==?=
Guest
Posts: n/a
 
      23rd Mar 2007
Thanks for helping newbie! Exactly what I need.

"Allen Browne" wrote:

> Create a macro with the RunSQL action.
>
> The statement to delete all records from Table1 is:
> DELETE FROM Table1;
>
> --
> Allen Browne - Microsoft MVP. Perth, Western Australia
> Tips for Access users - http://allenbrowne.com/tips.html
> Reply to group, rather than allenbrowne at mvps dot org.
>
> "Eddy" <(E-Mail Removed)> wrote in message
> news:CE8A289F-4D76-466A-AAD7-(E-Mail Removed)...
> >I need to delete all records in a table but keeping the table. This is to
> > allow new records to be push into the table by my IT admin (he is not
> > familiar with Access). Can't do appending data as past weeks data may
> > change. Any suggestions?

>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete records from table 1 which match records from table 2 Matilda Microsoft Access 7 26th Mar 2009 11:25 PM
Delete query unable to delete records from table. Fix how? =?Utf-8?B?TG9uZ1RvbQ==?= Microsoft Access Queries 8 15th Apr 2007 11:29 AM
how do you delete records or update records in a link table. =?Utf-8?B?SGVscG1l?= Microsoft Access Queries 2 18th Aug 2005 05:12 PM
Delete Query - Delete records in Table 1 using parameters from Tab =?Utf-8?B?SmVu?= Microsoft Access Queries 2 21st Mar 2005 01:13 PM
How to delete records from the original table while randomly selecting the records CaribSoft Microsoft Access Queries 2 5th Feb 2004 09:53 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:54 PM.