Kode
Kode
Kode
Dim Ws As Worksheet
Set Ws = Worksheets(“DATABASE”)
TxtNOMOR.SetFocus
End Sub
‘menyimpan data
Private Sub cmdINPUT_Click()
Dim iRow As Long
Dim Ws As WorkSheets(“DATABASE”)
‘clear data
Me.txtNOMOR.Value = ‘’
Me.txtNAMA.Value = ‘’
Me.txtKAMPUNG.Value = ‘’
Me.txtRTRW.Value = ‘’
Me.cmbKECAMATAN.Value = ‘’
Me.cmbDESAKELURAHAN.Value = ‘’
Me.ckLAKILAKI.Value = ‘’
Me.ckPEREMPUAN.Value = “
Me.cmbPENDIDIKAN.Value = ‘’
Me.cmbKESEHATAN.Value = ‘’
Me.cmbDAYABELI.Value = ‘’
Me.txtNOMOR.SetFocus
MsgBox “DATA SUDAH DI ENTRY KE DATABASE”
End Sub
Private Sub