ACC: How to Format a Number with a Trailing Percent Sign (119482)
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 Q119482
Moderate: Requires basic macro, coding, and interoperability skills.
SUMMARY
You cannot use a percent sign (%) in a format statement in Microsoft
Access. Microsoft Access does not recognize the backslash character (\)
(the normal switch to indicate a literal character in a format
string) when used in conjunction with the percent sign. If you do use it,
Microsoft Access will multiply the value by 100. For example, a bound
numeric control with the Format property set to "0%" would return "1200%"
if you entered "12" in the control.
This article describes how to work around this behavior.
Modification Type: | Major | Last Reviewed: | 5/6/2003 |
---|
Keywords: | kbhowto kbusage KB119482 |
---|
|