Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delete all records in a table

Status
Not open for further replies.

Lightlancer

Programmer
Jul 18, 2008
88
NL
hi there,

i have a macro that can delete all records from a table:

Code:
Delete * from [tblFakturatie]

Now i need to have this in VBA because, alot of checkboxes needs to reset and that i have written in VBA (dunno how to reset checkboxes in a form with a macro, and VBA is better, but that is my thinking.)

any ideas?

many Thanks in advance

Lightlancer
 
How are ya Lightlancer . . .

Try this:
Code:
[blue]   CurrentDb.Execute "Delete * from [tblFakturatie]", dbFailOnError[/blue]

Calvin.gif
See Ya! . . . . . .

Be sure to see thread181-473997
Also faq181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top