How convert Docmd.Domenuitem

M

mscertified

I'm converting a 97 db to 2000.
A form has a button that executes a Docmd.Domenuitem command.

This is supposed to invoke Find and Replace. It does, but the subject is
grayed out. I need the find to be based on the control where the cursor was
when the button was pressed. Any ideas? Access help in 2000 does not even
mention this command neither does my Access book.
 
J

John Nurick

Maybe you need to do

Screen.PreviousControl.SetFocus
DoCmd.RunCommand acCmdFind

or DoCmd.FindRecord
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top