Modul VB Visual Data Manager
Modul VB Visual Data Manager
3. Dari menu File (VisData), pilih New, Microsoft Access, Version 7.0 MDB ….
4. Ketik nama Database (Latihan) tapi pastikan terlebih dahulu letak penyimpanan file
database ini. Akhiri dengan tekan Save
5. Pada window Database Windows, Klik kanan, pilih New Table maka akan muncul
…..
MODUL VISUAL BASIC VISUAL DATA MANAGER MERCUSUAR
8. Bila ada indeks, maka untuk menentukan indeks, Klik tombol Add Index, maka
muncul…
LATIHAN :
Layout
MODUL VISUAL BASIC VISUAL DATA MANAGER MERCUSUAR
Property Setting
Object Property Setting Object Property Setting
Form Caption Form Data TemanTextbox3DataSource Data1
Label1 Caption Nama DataField Phone
Label2 Caption Alamat Text
Label3 Caption Phone Textbox4DataSource Data1
Label4 Caption HP DataField HP
Label5 Caption Hobby Text
Textbox1 DataSource Data1 Textbox5DataSource Data1
DataField Nama DataField Hobby
Text Text
Textbox2 DataSource Data1 Data1 DatabaseName Latihan
DataField Alamat RecordSource Teman
Text Command1Name cmdTambah
Caption Tambah
Command1Name cmdKeluar
Caption Keluar
Code :
Sub aktif()
Text1.Enabled = True
MODUL VISUAL BASIC VISUAL DATA MANAGER MERCUSUAR
Text2.Enabled = True
Text3.Enabled = True
Text4.Enabled = True
Text5.Enabled = True
End Sub
Sub pasif()
Text1.Enabled = False
Text2.Enabled = False
Text3.Enabled = False
Text4.Enabled = False
Text5.Enabled = False
End Sub
Sub kosong()
Text1 = ""
Text2 = ""
Text3 = ""
Text4 = ""
Text5 = ""
End Sub