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

How would I?... in a form

Status
Not open for further replies.

bbcwjun

Technical User
Oct 25, 2001
12
US
How can I in a form field, after I enter data (ie. phone #) to automatically look up in a query or table to match the exact ENTIRE RECORD to that data I entered? Do I build an expression or run a macro??

Thanks!
 
It's a bit simpler to just filter by form (assuming that all you are trying to do is find a record, not append a new record with exactly the same information). Robbo ;-)
 
How do I solve this problem with filtering then? If I filter and it doesn't find a matching record it displays a blank record (filtered).. how can I make it go back to the form field with a displayed message like "not found"?

THANKS!
 
In this case I would use the 'find' function. If you're restricting menus launch it from a command button (code 'DoCmd.RunCommand acCmdFind' in the button's on click event). This should do exactly what you want, but you will have to type the value you are looking for in.

I know that it's not exactly what you're trying to achieve but it does work and very well too. In my book, simplicity is king! Robbo ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top