I am having difficaulty figuring it out.
Expand|Select|Wrap|Line Numbers
- Private Sub Command22_Click()
- Dim rst As Recordset
- If Not IsNull(Text1) Then
- Set rst = [Forms]![MyForm]![MySubform].Form.RecordsetClone
- rst.FindFirst "[MyField] Like """ & Me.Text1 & "*"""
- If Not rst.NoMatch Then
- [Forms]![MyForm]![MySubform].Form.Bookmark = rst.Bookmark
- Else
- MsgBox "Not Found!"
- End If
- End If
- rst.Close
- Set rst = Nothing
- End Sub
In a normal query, I use this:
MyField Like "*" & [forms]![Myform]![text1] & "*"
But I don't know how to do the same with FindFirst
Can anyone provide any help?????
Thanx a lot