I am sorry not to provide all the information. I am using VB6.0 with SQL 2000.
This is my code to find the record. May be some one can help me now.
Private Sub cmdfind_click()
Dim Eno As Long
'Dim vbmousepointer As MousePointerConstants
rs.Close
rs.Open "select jobnumber,keyNO,empno,labcode,shiftnumber,totaltime,bldgnumber,date,scannumber,line from emplhrdtltest", cnn
On Error Resume Next
'vbmousepointer = vbHourglass
Eno = InputBox("Enter KeyNo to Search", " Search"
rs.Find "keyno=" & Eno
If rs.BOF And rs.EOF Then
MsgBox "Record Not Found ", vbOKOnly
Else
Call DisplayValues
'vbmousepointer = vbNormal
End If
End Sub