Access 2007 RunTime - "The command or action 'Find' isn't available now."

souquetbressand
souquetbressand used Ask the Experts™
on
Hello,

I have created a database in Access 2007 which is backended by MySQL.  When I deploy this database via the 2007 Developer Extensions everything seems to function correctly.  However, I have coded a button to use the "find" function so that my users can search the database for records which are pertinent to their needs.

Unfortunately, when they click this button, they get the error, "The command or action 'Find' isn't available now."  CTRL+F does not work either.  The code below is what was used to design the button which will search the form as needed.  Regrettably I have searched endlessly and cannot find a solution to this problem.  Sadly MS support for RunTime is nearly non-existent.

If anyone has a solution to this issue or any suggestions on further troubleshooting the problem, please let me know.  Also, if you need additional information I would be happy to provide it.  

Thank you!
Private Sub find_cp_Click()
On Error GoTo Err_find_cp_Click
 
    Screen.PreviousControl.SetFocus
    DoCmd.RunCommand acCmdFind
 
Exit_find_cp_Click:
    Exit Sub
 
Err_find_cp_Click:
    MsgBox Err.Description
    Resume Exit_find_cp_Click
    
End Sub

Open in new window

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Author

Commented:
I searched for over 4 hours to find this information and got an answer here within 20 minutes or so.  I'm ecstatic!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial