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

Create a "Find Record" button on a form

Status
Not open for further replies.

OPathMan

Technical User
Dec 14, 2003
6
US
I am trying to create a button on a form that will open another form, then display a dialogue box in which I can type information (customer name)and then have that record appear in the form. The difficlty I'm having is to have the search/find feature to find "any part of field" (e.g. if 2 customer fields are: 1) DOE, John, and 2) DOE, Jane, I would want to type:"DOE", then record 1 would be found, then I would be prompted to "find next". I am currently trying to use 3 macros (OpenForm, GoToControl, and FindRecord). OpenForm and GoToControl are straightforward and work well. The FindRecord is the difficulty I believe. Any help with "Find What" syntax would be appreciated.

Dave
 
You can try using the RecordsetClone.FindFirst method. I use it like this in the AfterUpdate event for a combobox, cboFindWO

Me.RecordsetClone.FindFirst "[WO Number] = " & Me![cboFindWO] & ""
Me.Bookmark = Me.RecordsetClone.Bookmark

Maybe that will spark some ideas.

Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top