Anda di halaman 1dari 1

Select Case CMDCari.

Caption
Case "Cari"
MsgBox "Masukan Nama dan Tekan Tampil", vbInformation
txNama.Enabled = True
txNama.SetFocus
CMDCari.Caption = "Tampil"
Case "Tampil"
With adodc1.Recordset
On Error Resume Next
.Find "Nama = '" & txName.Text & "'"
If Not .EOF Then
txtPendaftaran.Text = !No.Pendaftaran
txtJabatan.Text = !Jabatan
CMBlokasikerja.Text = !LokasiKerja
txtRekening.Text = !No.Rekening
txtNPWP.Text = !NPWP
txtKK.Text = !No.KK
txtNamaKTP.Text = !Namaktp
txtKTP.Text = !No.KTP
txtAlamat.Text = !Alamat
txtKodepos.Text = !Kodepos
txtTempatlahir.Text = !Tempatlahir
CMBtanggal.Text = !Tanggallahir
CMBBulan.Text = !Bulanlahir
CMBTahun.Text = !Tahunlahir
CMBstatus.Text = !Status
CMBgolangandarah.Text = !Golongandarah
txtibukand.Text = !Ibukandung
txtayahkand.Text = !Ayahkandung
txtBPJSKesehatan.Text = !BPJSkesehatan
txtBPJSTenagakerja.Text = !BPJSTenagakerja
CMBAgama.Text = !Agama
CMBpendidikan.Text = !Pendidikan
txtJurusan.Text = !Jurusan
CMBsimsio.Text = !simsio
txtHandphone.Text = !No.Handphone
CMBtanggungan.Text = !Tanggungan
If !Jeniskelami = "Laki-Laki" Then
RadioLaki.Value = True
Else
Perempuan.Value = True
End If
CMBCari.Caption = "Cari"
CMBRubah.Enabled = True
Simpan.Enabled = False
CMBHapus.Enabled = True
Else
MsgBox "Nama Tidak Ditemukan Silahkan Masukan Yang Lain", vbCritical
CMBCari.Caption = "Cari"
End If
End With
End Select

Anda mungkin juga menyukai