ACC2000: How to Format a Number with a Trailing Percent Sign (208985)
The information in this article applies to:
This article was previously published under Q208985 Moderate: Requires basic macro, coding, and interoperability skills.
This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).
SUMMARY
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 the percent sign in the Format statement, Microsoft Access multiplies the value by 100. For example, a bound numeric control with the Format property set to 0% returns 1200% if you type 12 in the control.
This article describes how to work around this behavior.
REFERENCESFor more information about the Format function, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type format function in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
Modification Type: | Major | Last Reviewed: | 6/24/2004 |
---|
Keywords: | kbhowto kbinfo kbusage KB208985 |
---|
|