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

Find Record Command Button asking for argument - Find what?

Status
Not open for further replies.

PeanutB7

Programmer
Joined
Jun 13, 2005
Messages
56
Location
US
I have include a find record on a form and used the button wizard. Regretfully it is coming up as an error asking find what?

The Action Failed Dialog Box States:

Macro Name - Find Record
Condition - True
Action Name - FindRecord
Argument - ,WholeField, No, All, No, Yes, Yes


Could anyone please tell me the complete argument to include and how to include this.

I have attempted the F1 key but to no avail. I would certainly appreciate your assistance.

Thank you for the time!
 
Hello,

It appears that you created a MACRO, then had the command button 'On Click' event execute that macro (I can duplicate your problem).

Why not just insert the command button, use the wizard and select "Find Record"

If not, you will need to change your macro to insert a "GoToControl" before the "FindRecord"
 
Yes, PeanutB7, as Trevil said...

Alternately, from the same command button you run the Macro, at the top, set focus to the control, you're doing the search on.

Private Sub cmdMacro_Click()

txtCity.SetFocus

Docmd.RunMacro....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top