Connection Database Use Module VB 6.0

1:41:00 PM
In this steps, we call Step 4, before learn in this step, you must follow :
Step 1 : Cteate New Project
Step 2 : Create Main Form Application
Step 3 : Create Database and Tables

Please Follow steps below for Create Connection Database using Module in VB 6.0
Open your latest Project : Belajar VB


And the latest like below picture :
Click Project
Add Module
Click Open
Click save

And then fill below code in the Module1
Public ConnectDB As New ADODB.Connection
Public RSUsers As ADODB.Recordset
Public Sub OpenDB()
Set ConnectDB = New ADODB.Connection
Set RSUsers = New ADODB.Recordset
ConnectDB.Open "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\DBBelajarvb.mdb"
End Sub
in above step is connect to database using Module
Please see next steps :)

Artikel Terkait

  • Create Customer Form - VB 6.0In this step, we call Step 9, before learn in this step, you must follow : Step 1 : Cteate New Project Step 2 : Create ...
  • VB 6.0 - MySQL ConnectionThis Tutorial Visual Basic 6.0 how to connect Database MySQL Step 1: Create database and table in MySQL Step 2 : Desig ...
  • VB 6.0 - SQL Server ConnectionThis Tutorial Visual Basic 6.0 how to connect Database SQL SERVER Step 1: Create database and table in SQL SERVER Step ...
  • Create Login Form VB 6.0In this steps, we call Step 5, before learn in this step, you must follow : Step 1 : Cteate New Project Step 2 : Creat ...
  • Create New Project Application Using VB 6.0Welcome to Belajarvb.com, here if you want create Application using Visual Basic 6.0. If you want follow below step ple ...
Penulisan markup di komentar
  • Untuk menulis huruf bold silahkan gunakan <strong></strong> atau <b></b>.
  • Untuk menulis huruf italic silahkan gunakan <em></em> atau <i></i>.
  • Untuk menulis huruf underline silahkan gunakan <u></u>.
  • Untuk menulis huruf strikethrought silahkan gunakan <strike></strike>.
  • Untuk menulis kode HTML silahkan gunakan <code></code> atau <pre></pre> atau <pre><code></code></pre>, dan silahkan parse dulu kodenya pada kotak parser di bawah ini.
Konversi Code
Disqus
Silahkan Berkomentar Dengan

2 komentar

Write komentar
Unknown
AUTHOR
December 2, 2015 at 3:24 PM delete

Kalau databasenya disharingkan utk di buka pc lain.. apa coding utk vb nya .trims

Reply
avatar
Tutarni
AUTHOR
December 2, 2015 at 9:27 PM delete

Hi Decky,
Databasenya menggunakan apa ya? access atau MySQL atau apa?
Karena setiap database koneksinya berbeda beda

Reply
avatar