ACC: ValidationRule Parses Function Name without Parentheses to String (97512)
The information in this article applies to:
- Microsoft Access 1.0
- Microsoft Access 1.1
- Microsoft Access 2.0
- Microsoft Access for Windows 95 7.0
- Microsoft Access 97
This article was previously published under Q97512 Novice: Requires knowledge of the user interface on single-user computers.
SYMPTOMS
When you type an expression in the ValidationRule property of a text box,
and the expression contains a function name that has no parentheses or
parameters, Microsoft Access evaluates the expression as a string instead
of a function.
RESOLUTION
Put parentheses or parameters after all function names so that they can
be correctly evaluated as functions instead of text strings. For example,
use
=Date()
instead of:
=Date
NOTE: For this example to work correctly, after putting parentheses after
=Date, you also need to change the Format property of the text box to
General Date.
STATUS
This behavior is by design.
REFERENCES
For more information about creating functions, search the Help Index for
"functions," and then "creating," or ask the Microsoft Access 97 Office
Assistant.
Modification Type: | Major | Last Reviewed: | 5/9/2003 |
---|
Keywords: | kbprb kbusage KB97512 |
---|
|