Membuka Database di VB6

Public db As New ADODB.Connection
Public rs As New ADODB.Recordset

Public Sub data_connect()
Dim path As String
path = App.path & “\database\karyawan.mdb”
db.CursorLocation = adUseClient
db.Open “Provider=microsoft.jet.oledb.4.0;persist security info=false;data source=” & path & “;”
End Sub

Categories: VB6 | Tinggalkan komentar

Navigasi pos

Tinggalkan Balasan

Please log in using one of these methods to post your comment:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

Buat situs web atau blog gratis di WordPress.com.

%d blogger menyukai ini: