ACC2000: Using Eval Function with Parameters in Parameter Queries (198462)
The information in this article applies to:
This article was previously published under Q198462
Moderate: Requires basic macro, coding, and interoperability skills.
SUMMARY
If you use the Eval() function with a parameter expression in the criteria
of a query, you do not need to explicitly declare the parameter in order
to run the query in code.
If you do not use the Eval() function and you do not explicitly declare the
parameter, you may receive the following error message when you run the
query in code, where n represents the number of parameters:
Run-time error 3061:
Too few parameters. Expected n.
Microsoft 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. REFERENCES
For more information about parameter queries, click Microsoft Access Help
on the Help menu, type "parameter queries" in the Office Assistant or the
Answer Wizard, and then click Search to view the topics returned.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbhowto kbProgramming KB198462 |
---|
|