Article ID: 285162 - Last Review: October 11, 2006 - Revision: 3.4 ACC2002: How to Use Server Filters on Data Access Pages Without a Web ServerThis article was previously published under Q285162 Moderate: Requires basic macro, coding, and interoperability skills.
This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp). For a Microsoft Access 2000 version of this article, see 237377 (http://support.microsoft.com/kb/237377/EN-US/ ) . SUMMARY
This article demonstrates how to create script that filters a data access page by setting the ServerFilter property. You can use this script even when the page is not stored on a Web server.
MORE INFORMATIONMicrosoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.
The following steps demonstrate how to create a page that is based on the Customers table. When you open the page or click the New Filter button, the script prompts you for a list of countries. The script then limits the number of records that are returned based on the countries that you entered. You can return all records by leaving the list empty.
CAUTION: If you follow the steps in this example, you modify the sample database Northwind.mdb. You may want to back up the Northwind.mdb file and follow these steps on a copy of the database.
| Article Translations
|
Back to the top
