Rev032400
asked on
Help on ADO.RS.FIND
How do I do a search on the recordset from a value inputed in a text box??
below is my example, the way it is, it searchs for text17.text as the sitename.
please help
With Adodc3.Recordset
.Find "SITE_NAME = 'TEXT17.text'"
If Not .EOF Then
'Record was found
X = MsgBox("Applications Have ready been scheduled", vbOKOnly)
Exit Sub
Else
'Record not found
End If
End With
below is my example, the way it is, it searchs for text17.text as the sitename.
please help
With Adodc3.Recordset
.Find "SITE_NAME = 'TEXT17.text'"
If Not .EOF Then
'Record was found
X = MsgBox("Applications Have ready been scheduled", vbOKOnly)
Exit Sub
Else
'Record not found
End If
End With
Find "SITE_NAME = Text17.Text"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
With Adodc3.Recordset
.Find "SITE_NAME = '" & TEXT17.text & "'"
If Not .EOF Then
'Record was found
X = MsgBox("Applications Have ready been scheduled", vbOKOnly)
Exit Sub
Else
'Record not found
End If
End With
.Find "SITE_NAME = '" & TEXT17.text & "'"
If Not .EOF Then
'Record was found
X = MsgBox("Applications Have ready been scheduled", vbOKOnly)
Exit Sub
Else
'Record not found
End If
End With
sorry about that post. my friend in the computer lab thought he'd play around on my comp til i got back. hes not a vb programmer (obviously)
ASKER
THANKS RUCHI'S AND THE OTHERS Looks like it was a race for the points.