Percentage Stored As Double: How To Format Data Entry?

  • Thread starter Thread starter (PeteCresswell)
  • Start date Start date
P

(PeteCresswell)

I am storing a percentage in a Double field.

No problem formatting it for presentation (e.g. .33456 shows as 33.456%).

But when the user edits the field, they have to type in the decimal equivalent.
(e.g. .33456 for 33.456%).

What am I doing wrong?
 
Per Allen Browne:
That's how Access has always worked, Pete.
Microsoft plans to fix in in Access 2007.

In the mean time, here's a simple fix:
Enter a value as a percent
at:
http://allenbrowne.com/casu-16.html

Thanx Allen. That did the trick.

What happens when 2007 comes out? Will my form be broken?

i.e. Should I think about adding a version check/notification to AutoExec?
 
The form will still work okay in Access 2007.

The new version adds the % sign with the first keystroke.
The code in the link runs after Access has evaluated the value, and changes
it only if there is no percent sign. So the code runs harmlessly, doing
nothing at all in Access 2007.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top