Delete records based on criteria

  • Thread starter Andy (Hypnotic_Monkey_Scratcher)
  • Start date
A

Andy (Hypnotic_Monkey_Scratcher)

Hi

I need to write a macro that will delete records from the output of a query,
based on the value of one of the fields.

The main problem I am having is that the criteria for deletion is over 2700
'things' long. Is there a way I can compare the value of the field to this
list, and if it matches, delete the whole record?

Any info would be much appreciated!

Thanks & Regards,

Andy
 
A

Andy (Hypnotic_Monkey_Scratcher)

Basically, I have lots of cost data, and need to delete the data for some
projects (the 'things').

I tried creating a delete query, but there is not enough space for all of
the criteria.
 
T

Tom Lake

Andy (Hypnotic_Monkey_Scratcher) said:
Basically, I have lots of cost data, and need to delete the data for some
projects (the 'things').

I tried creating a delete query, but there is not enough space for all of
the criteria.

Create a table with the 2700 'things' in it and run the delete query based on a
DLookup criteria from that table.

Tom Lake
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top