|
-
Oct 1st, 2001, 01:55 PM
#1
Thread Starter
Lively Member
access
is there any way of erasing all data on an access sheet??
-
Oct 1st, 2001, 01:55 PM
#2
-
Oct 1st, 2001, 01:58 PM
#3
Thread Starter
Lively Member
-
Oct 1st, 2001, 02:12 PM
#4
Do you want to delete all data in all tables quickly? (I assume that because deleting the .MDB itself is just a one liner.)
First, load all of the table names in to a Listbox, or something like that, and then loop through the listbox inserting each entry into a one line SQL statement.
Dim SQL As String
Dim i As Integer
For i = 0 to List1.ListCount - 1
SQL = "DELETE FROM " & List1.List(i)
DatabaseObject.Execute SQL
Next
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|