Pau Records - Adding of Records - Visual Basic & MS Access with database password

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
6,970
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Aug 27, 2009

this vid is for educational purpose only..

the database password is "admin"

-- all codes --

Private Sub Command1_Click()
On Error Resume Next
Adodc1.Recordset.MoveFirst
Adodc1.Recordset.Find "username like '" & Text1.Text & "'"
If Text1.Text = "" Or Text2.Text = "" Then
MsgBox "You must enter an id and a password!", vbCritical + vbOKOnly, "Attention!"
Else
If Adodc1.Recordset.EOF = True Then

Adodc1.Recordset.AddNew
Adodc1.Recordset!UserName = Text1.Text
Adodc1.Recordset!pass = Text2.Text
Adodc1.Recordset.Update
Else
MsgBox "Id Already Taken!", vbCritical + vbOKOnly, "Add Record"
End If
End If
End Sub

Private Sub Form_Load()
On Error Resume Next
Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\John Paulo\Desktop\try.mdb;Persist Security Info=False;Jet OLEDB:Database Password=admin"
Adodc1.RecordSource = "select * from table1″
Set DataGrid1.DataSource = Adodc1

End Sub

Category:

Education

Tags:

License:

Standard YouTube License

Link to this comment:

Share to:

Uploader Comments (romayne15)

  • Thanks Dude

  • @danilator20081 you're welcome dude.

  • does that music always come on when you launch access?

  • @RandomWalkTheory hmmm not always.. LOL :)

Top Comments

  • Superb...Thank u so much

see all

All Comments (8)

Sign In or Sign Up now to post a comment!
  • tenk u s much

  • pare pno pg delete button? pnu codes non? wah..

  • nice man.. XD

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more