Link to home
Start Free TrialLog in
Avatar of ssblue
ssblueFlag for United States of America

asked on

Access need to delete records

Access:  I have a table with 1.7 million records of tasking and each line of tasingk has a New_Interval (number) and a Tag_Number associated with it.  I need to delete some records.
I need identify the records to delete by using the Tag_Numbers that have a New_Interval   <  1001
Then I need to also delete all records associated with those same Tag_Numbers.

Some Tag_Numbers have tasking with a New_Interval <1001 and tasking with a  New_Interval >1001
ASKER CERTIFIED SOLUTION
Avatar of Paul Cook-Giles
Paul Cook-Giles
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Delete * FROM YourTable WHERE [New_Interval]   <  1001

Open in new window

But it would better to give us a better info about your table design along with some sample data
Avatar of ssblue

ASKER

Thanks!
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ssblue

ASKER

Thanks again for the information. You are correct in that I needed to delete all tagnumbers which had a new_interval <1001 associated with it.