Delete query

  • Thread starter ryan.fitzpatrick3
  • Start date
R

ryan.fitzpatrick3

Will a delete query delete whole table or just records in table? I
have.

DELETE tblAdagePaidDebits
FROM tblAdagePaidDebits;

Will this delete the entire table or the records in that table?

ryan
 
D

Douglas J. Steele

That will delete all the records in the table, or it would if it were
written correctly:

DELETE * FROM tblAdagePaidDebits;

or simply

DELETE FROM tblAdagePaidDebits;

To delete only some of the records, you need a Where clause.

To get rid of the table, you need to use something like:

CurrentDb.TableDefs.Delete "tblAdagePaidDebits"
 

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