Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recordset problem

Status
Not open for further replies.

awhitsel

Programmer
Feb 22, 2001
80
US
I am trying to look up a record on a form using the following code:

Dim rst As ADODB.Recordset
Dim strCriteria As String

strCriteria = "[IN_NUMBER] Like '" & [Forms]![frmInmateMaster]![txtFindInmateNumber] & "'"

Set rst = Me.RecordsetClone

rst.FindNext strCriteria

If rst.NoMatch Then
MsgBox "No entry found"
Else
Me.Bookmark = rst.Bookmark
End If

The problem is whenever I test the code to see if it works, I end up getting a "Method or data member not found" message. What access method should I use in this situation?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top