Creating a Login Form That connect to the database to check the user and password that listed

Category:
Database
Type:
Snippets
Difficulty:
Intermediate

Author: Anonymous

Version Compatibility: Visual Basic 6, Visual Basic 5

More information:
You need 1 ADO Control Named UsrData connected with data base that contain fields username and password You need 2 textboxes named txtUsr and txtPwd You need 1 commandbutton named cmdEnter

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: