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

Use Findfirst to Match on Multiple Values 1

Status
Not open for further replies.

spinalwiz

Programmer
Feb 25, 2003
32
IT
Im using a combobox to navigate to records on a form, but I want to find a record based upon the value in the combox AND another value (which at the moment is another combobox, but will eventually be inherited from a parent form).

Can I use the findfirst command to match on two fields?

Thanks
 
Err, I guess my question should actulally be 'how do I solve this problem?' it doesnt matter if i use findfirst or not.
 
Hi!

[tt]rs.findfirst "fld1 = 'blah' and fld2<100"[/tt]

As stated in the help files, "It is like the WHERE Clause in an SQL statement, but without the word WHERE"

Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top