Kamis, 24 Juni 2010
1
[VBS] Database - Menambah Record Dalam Table
Dim objADO,objRecordSet
Set objADO = CreateObject("ADODB.Connection")
Set objRecordSet = CreateObject("ADODB.Recordset")
Const adOpenStatic = 3
Const adLockOptimistic = 3
' Create Connection String
objADO.Open "Provider = Microsoft.Jet.OLEDB.4.0; " & _
"Data Source = f:\Phone.mdb"
' Open All Record in TemanKu Table With SQL Statement
objRecordSet.Open "SELECT * FROM TemanKu ORDER By Nama" , _
objADO, adOpenStatic, adLockOptimistic
objRecordSet.AddNew
objRecordSet("Nama") = "Crowja-Coderz"
objRecordSet("Alamat") = "jlMataram No84 Kroya"
objRecordSet("Telephone") = "6285291175712"
' Update Record
objRecordSet.Update
objRecordSet.Close
objADO.Close
'(c) 2010 Crowja
Langganan:
Posting Komentar (Atom)
1 Komentar Untuk “[VBS] Database - Menambah Record Dalam Table”
Kamis, 13 Oktober 2016 pukul 23.25.00 WIB
Did you know that you can earn money by locking special pages of your blog or website?
Simply open an account with AdscendMedia and run their content locking tool.
Posting Komentar
Berikan komentar positif tentang artikel yang sederhana ini niscaya sobat akan mendapatkan balasannya. Hehehe