problems with Find method in ADO

Lol Owen

Registered User.
Local time
Today, 03:39
Joined
Mar 15, 2004
Messages
86
Hi all, got a problem with the syntax for the Find method in an ADO recordset object. Assuming my recordset is called rsTrial and I want to find a field called Total where Total equals a variable, intTotal. I'm having problems getting the syntax straight. can someone sort me out please? :o

Cheers, Lol :D
 
Assuming it is an integer, by the variable prefix
Code:
rs.movefirst ' need a current position
rsTrial.find "Total =" & intTotal
if not rs.eof then 
  ' you've found the record
end if
more info in the help topic for the Find method
 
Cheers Roy, will give it a try!

Lol :D
 

Users who are viewing this thread

Back
Top Bottom