ACC: How to Simulate Parameters in an SQL Pass-Through Query (131534)
The information in this article applies to:
- Microsoft Access 2.0
- Microsoft Access for Windows 95 7.0
- Microsoft Access 97
This article was previously published under Q131534 SUMMARY Advanced: Requires expert coding, interoperability, and
multiuser skills. This article demonstrates two sample user-defined
Visual Basic for Applications functions that you can use to pass parameters to
an SQL pass-through query. This article assumes that you are
familiar with Visual Basic for Applications and with creating Microsoft Access
applications using the programming tools provided with Microsoft Access. For
more information about Visual Basic for Applications, please refer to your
version of the "Building Applications with Microsoft Access" manual.
NOTE: Visual Basic for Applications is called Access Basic in Microsoft Access
version 2.0. For more information about Access Basic, please refer to the
"Building Applications" manual. NOTE: A demonstration of the
technique used in this article can be seen in the sample file, Qrysmp97.exe.
For information about how to obtain this sample file, please see the following
article in the Microsoft Knowledge Base: 182568 ACC97: Microsoft Access 97 Sample Queries Available in Download Center
REFERENCES For more information about the syntax for the SQL property
of the SQL pass-through query, see the documentation for your ODBC database
server. For more information about returning values from SQL stored
procedures, please see the following article in the Microsoft Knowledge Base: 128408
ACC: How to Return Values from SQL Stored Procedures
For more information about pass-through queries, search for
"pass-through query," and then "Send commands to an SQL database using a
pass-through query" using the Microsoft Access 97 Help menu.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbhowto kbProgramming kbusage KB131534 |
---|
|