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

Recordset find 1

Status
Not open for further replies.

studybum

Programmer
Feb 24, 2001
14
0
0
US
I'm having a time with trying to find a specific record using a recordset. What is the magic?

With rsRecorset
.find ?
End with



 
recordset.Find (criteria, SkipRows, searchDirection, start)

criteria = eg.("nvName = " & strMyName)
[Conditions you might want to state, <SQL>]

skiprows = eg.(1-???)
[How many rows in the recordset you would like to skip]

searchdirection = eg.(adSearchBackWard, adSearchForward)
[The enumerators the function provides.... whether you want
to search from the first record down, or the last record up]

start = (1-??)
[The record you wish to start searching from]

example:

rs.Find &quot;nvName = &quot; & strMyName, 0, adSearchForward, 0

rs.Find &quot;nvName=&quot; & strMyName
[Here, the skiprows and start is by default 0 and the default direction is adSearchForward]

Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top