Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Conversion / September 2004

Tip: Looking for answers? Try searching our database.

RunCommand acCmdFind not working

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
James - 20 Sep 2004 14:01 GMT
Hi,

I have an Access 97 app converted to Access 2002. The app
uses workgroups to hide the Menu bar for standard users.
To allow user to use the Find command each form contains a
Find button, which opens the Find dialog.

However, when you search the focus is set to the find
button so I get - The control 'btnFindRecord' the macro is
attempting to search can't be searched.

I've tried using the old Access command :
    DoCmd.DoMenuItem acFormBar, acEditMenu, 10, ,
acMenVer70

And the new command:
    DoCmd.RunCommand acCmdFind

And both have the same effect.

Any suggestions?
Thanks
M.L. Sco Scofield - 21 Sep 2004 01:42 GMT
Try adding Screen.PreviousControl.SetFocus to your code.

Good luck.

Sco

M.L. "Sco" Scofield, Microsoft Access MVP, MCSD, MCP, MSS, A+
Useful Metric Conversion #17 of 19: 1 billion billion picolos = 1 gigolo
Miscellaneous Access and VB "stuff" at www.ScoBiz.com

> Hi,
>
[quoted text clipped - 18 lines]
> Any suggestions?
> Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.