sintax pencarian   Leave a comment

Private Sub Text1_KeyPress(KeyAscii As Integer)

KeyAscii = Asc(UCase(Chr(KeyAscii)))

End Sub

Private Sub Cari_Click()

Dim cari As String

Dim panjang As Integer

panjang = Len(Trim(Text1.Text))

Data1.Recordset.MoveFirst

While Not Data1.Recordset.EOF

cari = UCase(Left(Data1.Recordset!Nama_Barang, panjang))

If cari = Trim(UCase(Text1.Text)) Then

Exit Sub

Else

Data1.Recordset.MoveNext

End If

Wend

End Sub

Posted Oktober 25, 2010 by abdijeinlaknat brotherbad in Program

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s