Link to home
Start Free TrialLog in
Avatar of souquetbressand
souquetbressandFlag for United States of America

asked on

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

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

ASKER CERTIFIED SOLUTION
Avatar of jppinto
jppinto
Flag of Portugal image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of souquetbressand

ASKER

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