Re: How do I empty a table?



You could run a delete query:

DELETE * FROM YourTable

If you use cascading deletes when you set up the relationships you can run
the query on the main table in the relationship, and the related records
will be deleted also.

I have been known to open the tables, and select and delete all test data.
In this case I think it's OK for the developer to work directly with the
tables.

When you are done, run compact and repair (after backing up first). This
will reset the autonumber to 1 (I can't say for sure how this works in
Access 2007, though). In general, compact and repair is a good idea before
deploying the database.

"Steve Hayes" <hayesmstw@xxxxxxxxxxx> wrote in message
news:3deq059ki417i8vq0ked2o2d49s3jngfb3@xxxxxxxxxx
I want to develop a database and test it with test data.

How do I empty the database of the test data when I've finished testing
and
want to enter real data?

In Paradox it was easy and obvious, but in Access I haven't been able to
find
it.


--
Steve Hayes from Tshwane, South Africa
Web: http://hayesfam.bravehost.com/stevesig.htm
Blog: http://methodius.blogspot.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop
uk


.



Relevant Pages

  • RE: form updates the table, but the query doesnt show it
    ... (the feeling that i'm going to have to rebuild this database from scratch ... repair information. ... the lines of Pertaining to Customer Claim of Trouble vs. Pertaining to Repair ... based it on the query. ...
    (microsoft.public.access.queries)
  • form updates the table, but the query doesnt show it
    ... formed the original database with intent to make it more efficient / logical ... repair information. ... the lines of Pertaining to Customer Claim of Trouble vs. Pertaining to Repair ... based it on the query. ...
    (microsoft.public.access.queries)
  • Re: Corrupted Record
    ... db file (import query as table). ... I then exported all the other objects to the new database. ... > #Error on memo field and other fields has jibberish). ... > tried to repair but it won't repair. ...
    (microsoft.public.access.setupconfig)
  • Bad Error.
    ... I began trying to make a query that would use information based off a filter ... w/ the goal of creating a report from the new query. ... database utilities and click compact and repair database. ...
    (microsoft.public.access.queries)
  • Bad Error.
    ... I began trying to make a query that would use information based off a filter ... w/ the goal of creating a report from the new query. ... database utilities and click compact and repair database. ...
    (microsoft.public.access.queries)