I have a data entry form in which several of my fields use the percent data type. Works great on all but one. The problem that I have is that I need to allow entry of values less than 1%. The problem with this is that when for example my users enter say .98% access automatically converts .98 to 98%. That makes sense mathematically because .98 is equal to 98%. Further complicating this is that not all percentages will be less than 1% so a simple if statement like the one below doesn't work because it affects all entries:
Ideally, I would like the users to just be able to type in the percentage that they want without having to put in decimal format, ie 0.0098. This would reduce potential errors. A last resort would be to display a message box that notes the format that must be used for the field, but like I said that's not ideal.
Has anyone had experience with this problem, or know a work around to allow an input of less than 1% without having to enter it in decimal form?
Code:
Private Sub Claim_ AfterUpdate()
If Me.Claim < 1 Then
Me.Claim = Me.Claim__.Value / 100
End If
end sub
Ideally, I would like the users to just be able to type in the percentage that they want without having to put in decimal format, ie 0.0098. This would reduce potential errors. A last resort would be to display a message box that notes the format that must be used for the field, but like I said that's not ideal.
Has anyone had experience with this problem, or know a work around to allow an input of less than 1% without having to enter it in decimal form?