Access delete query

Posted on 2011-10-14
Last Modified: 2012-05-12
I have an Access database table with 17519 records in it.  I have verified this by opening the table and running a select query with count(*).  When a run a delete query (delete * from tableA) to clear the table, a warning pops up saying that I am about to delete 22746 records.

Why the difference in record count?
Question by:dpawlaczyk
    LVL 77

    Accepted Solution

    Do you have a relationship set up from tableA to another table?
    Have you set Cascade Delete for that relationship?

    Author Comment

    I checked to see if tableA if had any relationships to another table and it does not.
    LVL 77

    Expert Comment

    Then I have no idea why you are getting that result.
    LVL 119

    Expert Comment

    by:Rey Obrero
    can you upload your db?

    Author Comment

    I ran compact and repair database tool and I now do not see the issue anymore.

    Author Closing Comment

    I would like to award 250 points for this solution.  The solution wasn't the exact, but it ended up pointing me in the right directions.  

    Thanks again!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    In the article entitled Working with Objects – Part 1 (, you learned the basics of working with objects, properties, methods, and events. In Work…
    QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
    Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
    With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now