Salamilmu's Blog

Home » Pemrograman » Connection String Visual Basic 6.0 dengan Database Access

Connection String Visual Basic 6.0 dengan Database Access

October 2010
M T W T F S S
    Nov »
 123
45678910
11121314151617
18192021222324
25262728293031

Public Conn As New ADODB.Connection               ————>> membuat variable koneksi baru
Public RSB As ADODB.Recordset            ———————–>> membuat variable recordset

Public Sub BukaDB()            ————————————–>> membuat metode pemanggilan
Set Conn = New ADODB.Connection
Set RSB = New ADODB.Recordset

Conn.Open “Provider=Microsoft.Jet.OLEDB.4.0;Data Source=” & App.Path & “\DBBarang.mdb;Jet OLEDB:Database Password=Bismillah”
End Sub


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: