ODE97: Filter-By-Form Not Available in Run-Time ApplicationsID: Q172090
|
Advanced: Requires expert coding, interoperability, and multiuser skills.
When you try to open a form in Filter-by-Form view programmatically
in a Microsoft Access 97 run-time application, you may receive the
following error message
followed by:Run-time error '2501': The RunCommand action was canceled.
Execution of this application has stopped due to a run-time error. The application can't continue and will be shut down.
The Filter-by-Form commands are unavailable in a Microsoft Access 97 run-time application.
For more information about simulating Filter-by-Form in a run-time application, please see the following article in the Microsoft Knowledge Base:
Q166634 ACC97: Filter-by-Form Example for Run-Time Apps Available on MSL
In Microsoft Access 7.0, Filter-by-Form works in both the full version and the run-time version. However, the Filter-by-Form functionality wasn't designed to be available in a Microsoft Access 7.0 run-time application.
Private Sub btnFilter_Click()
DoCmd.RunCommand acCmdFilterByForm
End Sub
"C:\Program Files\Microsoft Office\Office\Msaccess.exe" _
"C:\Program Files\Microsoft Office\Office\Samples\Northwind.mdb" _
/Runtime
Additional query words: ODE Raid Sweep
Keywords : kberrmsg kbusage OdeGen
Version : WINDOWS:97
Platform : WINDOWS
Issue type : kbhowto kbprb
Last Reviewed: July 7, 1999