This article demonstrates how to use VB to add, modify, delete records of these operations in the database. I think I am the comparison of vegetables, for several years others are progressing, only I still in situ. But there is no way, we this circle of people now only my machine and VB6, reluctantly, only to try. If I write this childish things to understand the VB database operation of friends to provide even a bit of reference and help, will be my most happy things, but also hope that the master do not laugh.
This example I do is called "Programming Portal Web Site Management System", is a small information management system. The system uses an Access database in the background, which is connected to access in the form of an ADO code link. The system has the function of adding, modifying and deleting records to the database, and can refresh the display data in real time after some operation. And in the program added the corresponding code to the input of the data to verify the legality, in order to avoid the input of the wrong data caused by the program is not normal, the program running every operation and exit the system have a friendly prompt box to confirm the user. All code is debugged in the Windows 2003+vusual Basic 6.0 environment.
The system is running as shown below:
See a full set of "VB Prodigy Tutorials" (continued)