Wednesday, August 15, 2012

Visual Basic 6.0 part 5 - Deleting Data

DELETE statement this is one of the easiest and shortest code among the rest. All you have to do is to get unique identifier of the selected record and then delete using delete statement.

1.)Add a new command button and rename the  caption to Delete.


2.) Click the button and add the code . see image below.

3.) Save first a new records name it delete me.. see image below..


4.)Note: This is the continuation of our Part 3. You must SELECT first  the data in the listview  before deleting. The code of selecting data from listview is in part 4. To those who skip here's the link here

- Select the added data and then delete. see image below


Enjoy :)

Part 6 - Searching data

No comments:

Post a Comment