clsNumericInput is a class designed to be used in conjuction with the KeyDown event of a TextBox control. Objects of this class should be declared in a form's module, instantiated in the form's On Load Event and destroyed in the form's On Unload Event. When an object is instantiated, appropriate values should be assigned to the MaximumDigits, DecimalPlaces, and Decimal Separator properties. The Key Down event handler should assign the current KeyCode to the objects KeyCode property.
media:NumericInput.zip has demo files in Access 2000 and 2010 format. The textbox on the demonstration form is right aligned to provide right to left input functionality.
R E V I S I O N H I S T O R Y
|| 07 Aug 2011
|| original version
NumericInput by UtterAccess Wiki is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Editing and revision of the content is freely encouraged; for details, see Expected Usage.