Monday, March 14, 2011

Connecting MS Access in VB6.0

Hello guys! in this topic I will show you how to connect MS Access to Visual Basic 6.0.

Dim conn as ADODB.Connection
Dim strcon as String

strcon = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source= " & App.Path & "MyDatabase.mdb"
    conn.ConnectionString = strcon
    conn.Open

Note:
MyDatabase.mdb(your database name)

Hope this will help you. Enjoy!
Happy Coding! :)

2 comments:

  1. whahahaha walang gayahan nang services!!!!whahahahah

    ReplyDelete
  2. di naman ahh..baka nag kataon lng.. wahahahhaha

    ReplyDelete