PC Review


Reply
Thread Tools Rate Thread

Deleting Records in Access

 
 
=?Utf-8?B?Qm9ubmll?=
Guest
Posts: n/a
 
      25th Oct 2007
Can anyone tell me a quicker way to delete multiple records in Access?

Currently, I am clicking/highlighting/scrolling through multiple rows in my
table to delete them.

I have around 200,000 to delete.

Thanks if you can help!! Bonnie
 
Reply With Quote
 
 
 
 
=?Utf-8?B?bGRpYXo=?=
Guest
Posts: n/a
 
      25th Oct 2007

if the records that you are deleting has an identification like:>1000,
BL001,BL001

DoCmd.RunSQL "DELETE Table.* FROM Table WHERE [Identfication]




--
Lorenzo DÃ*az
Cad Technician


"Bonnie" wrote:

> Can anyone tell me a quicker way to delete multiple records in Access?
>
> Currently, I am clicking/highlighting/scrolling through multiple rows in my
> table to delete them.
>
> I have around 200,000 to delete.
>
> Thanks if you can help!! Bonnie

 
Reply With Quote
 
Kerry
Guest
Posts: n/a
 
      25th Oct 2007
Hi Bonnie,

How are you deciding what to delete?
A quicker way? Sure try Delete * From [Table Name]

That will delete every row in the table.

On Oct 25, 1:37 pm, Bonnie <Bon...@discussions.microsoft.com> wrote:
> Can anyone tell me a quicker way to delete multiple records in Access?
>
> Currently, I am clicking/highlighting/scrolling through multiple rows in my
> table to delete them.
>
> I have around 200,000 to delete.
>
> Thanks if you can help!! Bonnie



 
Reply With Quote
 
John W. Vinson
Guest
Posts: n/a
 
      25th Oct 2007
On Thu, 25 Oct 2007 10:37:00 -0700, Bonnie <(E-Mail Removed)>
wrote:

>Can anyone tell me a quicker way to delete multiple records in Access?
>
>Currently, I am clicking/highlighting/scrolling through multiple rows in my
>table to delete them.
>
>I have around 200,000 to delete.
>
>Thanks if you can help!! Bonnie


A Delete query will do this in a snap. If you want to delete all the records
in the entire table, just create a query based on the table and change it to a
Delete query. To selectively delete records, apply a criterion to the query on
the Criteria line.

Be sure to compact the database after you run this, to recover the space
formerly occupied by the deleted records.

John W. Vinson [MVP]
 
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
Access is deleting records Paul Microsoft Access 12 9th Feb 2010 09:13 PM
Access 2000 still #Deleting Records =?Utf-8?B?am1pbGxlcldW?= Microsoft Access 2 30th Oct 2007 05:46 PM
Help with deleting records in access kellywebber@gmail.com Microsoft Access 8 24th Aug 2006 10:28 PM
Ms Access- Deleting Records carol henry Microsoft Access 2 21st Mar 2006 08:45 PM
Deleting records from access using ADO in through Excel Chris Dunigan Microsoft Excel Programming 8 11th Dec 2003 09:38 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:24 PM.