View: 3369|Reply: 6
|
VB with access database
[Copy link]
|
|
tak de sape tau ke??? |
|
|
|
|
|
|
|
kalo pakai excel yg embedded with VB...sama ke ngn VB 6..
ke itu VB.net?? |
|
|
|
|
|
|
|
aku tak ingat.. |
|
|
|
|
|
|
|
aku tak ingat..
budingyun Post at 3-5-2010 19:20
tak pe.......... |
|
|
|
|
|
|
|
Reply 5# kelapamuda
1 - add references
Project > References
add Microsoft ActiveX Data Object 2.5 Library
2 - declare kat option explicit
Dim db as ADODB.Connection
3 - kat coding ko paste je coding ni...
Private Sub Form_Load()
Set db = New ADODB.Connection
db.ConnectionString = "PROVIDER=Microsoft.Jet.OLEDB.4.0; DATA SOURCE= " & App.Path & "\NamaDatabase.mdb"
db.Open
End Sub
p/s: letak database ko tu dalam folder application jgak...
hope so membantu... |
|
|
|
|
|
|
|
hrp2 dh setel problem ni.. |
|
|
|
|
|
|
| |
|