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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search then search next

Status
Not open for further replies.

Nasdawg

IS-IT--Management
Aug 1, 2005
5
JP
Hello all,

I have search feature in my database. But now I have multiple records with some of the same fields. So what i would like to do is have a button that will search for the next record. Anyone that can help me I would appreciate it.

Thanks in advance
 
when you use your search feature do you activate this to the form?? If you did then you could use the next/previous buttons to display the next records that matches the criteria of your search!!!!
 
NO this is what i use for my search

Dim rs As Object

Set rs = Me.Recordset.Clone
rs.FindFirst "
Code:
='" & Me.srch & "'"
   If Not rs.nomatch Then
   Me.Bookmark = rs.Bookmark
   Else
   MsgBox "'" & Me.srch & "' found in the Database"
   End If

something very simple
 
Have you tried rs.FindNext ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
thanks for your assitance I have figured it out with your help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top