- In the Database window, click Queries under Objects, and then click New.
- In the New Query dialog box, click Design View, and then click OK.
- Click Close in the Show Table dialog box without adding any tables or queries.
- On the Query menu, point to SQL Specific, and then click Pass-Through.
- On the toolbar, click Properties to display the property sheet for the query.
- In the query property sheet, place the mouse pointer in the ODBC Connect Str property, and then, click the Build (...) button.
With the ODBC Connect Str property, you specify information about the database to which you want to connect. You can type the connection information, or click Build, and then enter information about the server to which you are connecting.
- When you are prompted to save the password in the connection string, click Yes if you want the password and logon name to be stored in the connection string information.
- If the query is not the type that returns records, set the ReturnsRecords property to No.
- In the SQL Pass-Through Query window, type your pass-through query. For example, the following pass-through query uses the Microsoft SQL Server TOP operator in the SELECT statement to return only the first 25 orders in the Orders table from the sample Northwind database:
SELECT TOP 25 orderid from orders
- To run the query, click Run on the toolbar. (For a SQL pass-through query that returns records, click View on the toolbar.)
- If necessary, Microsoft Access prompts you for information about your server database.
Note: If you have Read-Only Database Assistance (RODBA), you can create a pass-through query using The Raiser's Edge database. To do this, when prompted for a Data Source, select Machine Data Source, REOpen7
For additional details on creating Pass-Through queries in other versions of Microsoft Access database, please review the Microsoft Knowledgebase Solution at http://support.microsoft.com/kb/303968
Note: We provide links to third-party websites in an effort to help you resolve your issue. We are not responsible for the information on third-party websites, and we cannot assist with implementing resolutions from these websites.