Hi
What i need is make a search to a field in a database
I have this code to search but this search is only true if both are equal. What i want is make a search by one or more occurrences of any character
I know there are a function "Like" but i can't do it
Code:
-----------------------------------------------------------
With Adodc1.Recordset
.MoveFirst
.Find "Name='" & Txt_Text & "'"
If .EOF Then
MsgBox Txt_Text & " not Found."
Else
Dtl_Material.Text = Txt_Text
Dtl_Material.SetFocus
End If
End With
-----------------------------------------------------------
Tks any help
Gti
What i need is make a search to a field in a database
I have this code to search but this search is only true if both are equal. What i want is make a search by one or more occurrences of any character
I know there are a function "Like" but i can't do it
Code:
-----------------------------------------------------------
With Adodc1.Recordset
.MoveFirst
.Find "Name='" & Txt_Text & "'"
If .EOF Then
MsgBox Txt_Text & " not Found."
Else
Dtl_Material.Text = Txt_Text
Dtl_Material.SetFocus
End If
End With
-----------------------------------------------------------
Tks any help
Gti