|
-
Nov 2nd, 2000, 08:00 PM
#1
Thread Starter
Junior Member
How can I delete all the recors I have in one table.
-
Nov 2nd, 2000, 08:07 PM
#2
Frenzied Member
In SQL you can
1) delete from table [don't qualify the delete with a where condition]
2) drop the table and add it back again
-
Nov 3rd, 2000, 10:17 AM
#3
Thread Starter
Junior Member
Could you be more specific I´m new at VB programing.
Thanks......
-
Nov 3rd, 2000, 11:45 AM
#4
Fanatic Member
DELETE * FROM TableName
or
DROP TABLE TableName
followed by
CREATE TABLE TableName (field1 type [(size)] [NOT NULL] [index1] [, field2 type [(size)] [NOT NULL] [index2] [, ...]] [, CONSTRAINT multifieldindex [, ...]])
You can see that the first one is easier!
Cheers,
Paul
Not nearly so tired now...
Haven't been around much so be gentle...
-
Nov 3rd, 2000, 01:07 PM
#5
Hyperactive Member
The SQL way is much better than this, but this way will work:
rst.MoveFirst
Do Until rst.EOF
rst.Delete
rst.MoveNext
Loop
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
|