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

Custom Search!

Status
Not open for further replies.

esu4edp

Technical User
Feb 15, 2000
59
US
I have a form with one text box on it. I would like the user to enter a social. If there are any matching socials from tbl suspects, I want it to display the information from that table, if not I just want it to display "No Records Found"

I tried using the after update event assigned to a macro the opens a form with all the records from my tbl suspects and applying a filter from a query of that table. But it displayes all of the records.

Where have I gone wrong!
 
Check the help file for FindFirst method. The technique is discussed in depth, with several examples.
 
Create a query from the table that you want to use adding the fields that you want in the report. Int the column of the field that you want to find matching records, put something like [Socials] in the criteria line. When you run the query this should give you a message box asking
"Socials" and should all records that match.

Base your report on this query.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top