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

Macro - SetFocus before FindRecord

Status
Not open for further replies.

eadiem

Technical User
Apr 8, 2004
47
CA
I am trying to run a macro (attached to a command button) which will find record(s) matching a user-typed field.

A problem occurs if there is more than one record matching the criteria. I want the macro to go the first record, then if run again to go to the next one, and so on. But it just keeps finding the first record again and again.

Access Help suggests this:

"To avoid this problem...set the focus in the macro to the field containing the search criteria before you carry out the FindRecord action."

Any ideas how to do this? I do have a "GoToControl" action before the FindRecord action, and I have "FindFirst" set to No.


 
How are ya eadiem . . . . .

Post the criteria & Tablename being searched . . .

Calvin.gif
See Ya! . . . . . .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top