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

Customizing the FindRecord command in Access 97

Status
Not open for further replies.

bitstix

MIS
Feb 22, 2002
1
US
In Access 97 I need to customize the FindRecord command so the search defaults to look across ALL fields vs. the current field and finds matches ANYWHERE vs. the WHOLE field. Can this be done? I tried tweaking the code below but kept getting an " Expected = " error message.

DoCmd.FindRecord(FindWhat,[Match As AcFindMatch = acAnywhere],[MatchCase],[Search As AcSearchDirection = acSearchAll],[SearchAsFormatted],[OnlyCurrentField As AcFindField = acAll],[FindFirst])

Thanks for any insight.

Bitstix
 
Use the word "Like" instead of "=" in your search criteria
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top