|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi all friend,
im new in vb, can anyone help me how to write the code for findfirst method by index number. example when i key in one by one number in field will search one by one number in list DBgrib1. Code:
Private Sub Search_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Data1.Recordset.FindFirst "[barcode] like '" + Search + "*'"
Search.Text = UCase(Search.Text)
If Data1.Recordset.NoMatch Then
MsgBox "Barcode number Not Found"
End If
Search.SelStart = 0
Search.SelLength = Len(Search.Text)
End If
If KeyAscii = 27 Then
Unload Me
Form1.Visible = True
End If
num = InStr("1234567890" & Chr(8), Chr(KeyAscii))
If num = 0 Then
KeyAscii = 0
End If
End Sub
![]()
|
|
#2
|
||||
|
||||
|
Are you searching your database (what database are you using) or your grid?
__________________
I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section. ![]() Please use [Code]your code goes in here[/Code] tags when posting code. Before posting your question, did you look here? Got a question on Linux? Visit our Linux sister site. Modifications Required For VB6 Apps To Work On Vista ![]() Microsoft MVP 2005/2006/2007/2008/2009 |
|
#3
|
|||
|
|||
|
hi friend, i using the microsoft access, i want to search dbgrib.
pls help.thx Last edited by hwkong1688; 11-02-2009 at 09:20 AM. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Performance Issue Using Full Text Search | naveensingh | Database | 0 | 02-14-2009 09:59 AM |
| Retrieve binary field from SQL Server 2000 database into plain html ? | Nenad Kermeci | ASP.NET | 0 | 11-12-2002 11:39 AM |
| Inserting Checkboxes Into Yes/No Field In Access Database (JavaScript) | Cindy | ASP.NET | 2 | 03-15-2002 03:08 PM |
| how to search a database help me | achyuth | ASP.NET | 1 | 12-01-2000 10:37 AM |