ACC: Using Variables in the Criteria Row of the QBE GridLast reviewed: August 29, 1997Article ID: Q114511 |
The information in this article applies to:
SUMMARYModerate: Requires basic macro, coding, and interoperability skills. You cannot use a variable in the criteria row of the Query by Example (QBE) grid because Microsoft Access assumes the variable name is a literal text string. However, you can use a function name in the QBE grid and have the function return the value of the variable. 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 versions 1.x and 2.0. For more information about Access Basic, please refer to the "Introduction to Programming" manual in Microsoft Access version 1.x or the "Building Applications" manual in Microsoft Access version 2.0
MORE INFORMATIONThe following example demonstrates how to create a form based on a query that uses the value of a global variable as a criterion:
|
Additional query words: parameter
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |