You are on page 1of 1

TAMBAHKAN KOMPONEN (CTRL + T)

- MICROSOFT WINDOWS COMMON CONTROLS 2.6.0 (ceklis)

(KODING CARI)

Dim cari As String


cari = "nama_barang = '" & Text4 & "'"
Adodc1.Refresh
With Adodc1.Recordset
.Find cari

If Not .EOF Then


MsgBox .Fields(0) & "-" & .Fields(1), vbExclamation, "Data Ditemukan"
Else
MsgBox "Nama barang" & Text4 & " tidak ada", vbCritical, "Perhatian"
Text4 = ""
Text1.SetFocus
DataGrid1.Refresh
End If
End With

You might also like